Bug 1291478 - Add virtual destructor to CustomAutoRooter to slience compiler warnings r=terrence

This commit is contained in:
Jon Coppeard 2016-08-04 10:48:54 +01:00
parent b9fabf29e0
commit b9e20956f0

View File

@ -466,6 +466,8 @@ class MOZ_RAII JS_PUBLIC_API(CustomAutoRooter) : private AutoGCRooter
friend void AutoGCRooter::trace(JSTracer* trc);
protected:
virtual ~CustomAutoRooter() {}
/** Supplied by derived class to trace roots. */
virtual void trace(JSTracer* trc) = 0;