Uninitialised refcount in ReferenceCountedObject


#1

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() {}

#2

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.


#3

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


#4

It’s not called crap its called Jenkem


#5

ahaha wicked !