fixed possible memory leaks in the constructor and assignment operator of SharedPtr reported by issue #287
code indentation level
Merge pull request #452 from Kontinuation/develop

Fixed possible memory leak in SharedPtr (issue #287)