diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 5e8a3d5730ae..a966434535a4 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -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;