diff --git a/js/xpconnect/src/nsCxPusher.cpp b/js/xpconnect/src/nsCxPusher.cpp index b1456b40e4b1..c6d3240cb99e 100644 --- a/js/xpconnect/src/nsCxPusher.cpp +++ b/js/xpconnect/src/nsCxPusher.cpp @@ -139,6 +139,7 @@ AutoCxPusher::AutoCxPusher(JSContext* cx, bool allowNull) : mScriptIsRunning(fal #endif } +NS_EXPORT AutoCxPusher::~AutoCxPusher() { // Leave the request before popping. diff --git a/js/xpconnect/src/nsCxPusher.h b/js/xpconnect/src/nsCxPusher.h index b734f8f1eed1..ac062bcef602 100644 --- a/js/xpconnect/src/nsCxPusher.h +++ b/js/xpconnect/src/nsCxPusher.h @@ -26,7 +26,8 @@ class MOZ_STACK_CLASS AutoCxPusher { public: AutoCxPusher(JSContext *aCx, bool aAllowNull = false); - ~AutoCxPusher(); + // XPCShell uses an nsCxPusher, which contains an AutoCxPusher. + NS_EXPORT ~AutoCxPusher(); nsIScriptContext* GetScriptContext() { return mScx; }