How does no one notice this ? refCount is initialized with garbage, making the point of the memory management go to vacation...
bad++
//============================================================================== /** Creates the reference-counted object (with an initial ref count of zero). */ ReferenceCountedObject() {}