Uninitialised refcount in ReferenceCountedObject

How does no one notice this ? refCount is initialized with garbage, making the point of the memory management go to vacation...


/** Creates the reference-counted object (with an initial ref count of zero). */
    ReferenceCountedObject() {}

Before having a rant, it's always a good idea to check that you're not talking crap!

The ref count is an Atomic<int>, which initialises itself to 0 when constructed.

ah sorry, i must have smoked crap last night... 

It’s not called crap its called Jenkem

ahaha wicked !