mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
Bug 1291478 - Add virtual destructor to CustomAutoRooter to slience compiler warnings r=terrence
This commit is contained in:
parent
b9fabf29e0
commit
b9e20956f0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user