From 6d19137a54b62cb447cbbe3931e5c0b9ee19bd27 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Tue, 30 Oct 2012 20:01:31 -0700 Subject: [PATCH] Bug 806433 - Make mReleaseRunnable a ref ptr. r=smaug --- js/xpconnect/src/XPCJSRuntime.cpp | 1 - js/xpconnect/src/xpcprivate.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/xpconnect/src/XPCJSRuntime.cpp b/js/xpconnect/src/XPCJSRuntime.cpp index 17fe5b62b608..4f20015b3240 100644 --- a/js/xpconnect/src/XPCJSRuntime.cpp +++ b/js/xpconnect/src/XPCJSRuntime.cpp @@ -2362,7 +2362,6 @@ XPCJSRuntime::XPCJSRuntime(nsXPConnect* aXPConnect) mWatchdogThread(nullptr), mWatchdogHibernating(false), mLastActiveTime(-1), - mReleaseRunnable(nullptr), mExceptionManagerNotAvailable(false) { #ifdef XPC_CHECK_WRAPPERS_AT_SHUTDOWN diff --git a/js/xpconnect/src/xpcprivate.h b/js/xpconnect/src/xpcprivate.h index 6c8097920210..f60d86d3eacf 100644 --- a/js/xpconnect/src/xpcprivate.h +++ b/js/xpconnect/src/xpcprivate.h @@ -965,7 +965,7 @@ private: nsTArray extraGCCallbacks; bool mWatchdogHibernating; PRTime mLastActiveTime; // -1 if active NOW - XPCIncrementalReleaseRunnable *mReleaseRunnable; + nsRefPtr mReleaseRunnable; js::GCSliceCallback mPrevGCSliceCallback; nsCOMPtr mPendingException;