Bug 1405518: Make SyncObjectClient atomically refcounted as it may be accessed both on the paint and the main thread. r=dvander

MozReview-Commit-ID: K0QvlGlXIIc
This commit is contained in:
Bas Schouten 2017-10-05 20:08:18 +02:00
parent d645d9cf29
commit 6c3bb8c38c

View File

@ -41,7 +41,7 @@ protected:
SyncObjectHost() { }
};
class SyncObjectClient : public RefCounted<SyncObjectClient>
class SyncObjectClient : public external::AtomicRefCounted<SyncObjectClient>
{
public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(SyncObjectClient)