diff --git a/headers/os/support/Referenceable.h b/headers/os/support/Referenceable.h index e7ab5d67a4..d3a23f5109 100644 --- a/headers/os/support/Referenceable.h +++ b/headers/os/support/Referenceable.h @@ -23,7 +23,7 @@ public: int32 ReleaseReference(); int32 CountReferences() const - { return fReferenceCount; } + { return atomic_get((int32*)&fReferenceCount); } protected: virtual void FirstReferenceAcquired();