Bug 806433 - Make mReleaseRunnable a ref ptr. r=smaug

This commit is contained in:
Andrew McCreight 2012-10-30 20:01:31 -07:00
parent 77f0ca6ea2
commit 0c7c1a6f53
2 changed files with 1 additions and 2 deletions

View File

@ -2362,7 +2362,6 @@ XPCJSRuntime::XPCJSRuntime(nsXPConnect* aXPConnect)
mWatchdogThread(nullptr), mWatchdogThread(nullptr),
mWatchdogHibernating(false), mWatchdogHibernating(false),
mLastActiveTime(-1), mLastActiveTime(-1),
mReleaseRunnable(nullptr),
mExceptionManagerNotAvailable(false) mExceptionManagerNotAvailable(false)
{ {
#ifdef XPC_CHECK_WRAPPERS_AT_SHUTDOWN #ifdef XPC_CHECK_WRAPPERS_AT_SHUTDOWN

View File

@ -965,7 +965,7 @@ private:
nsTArray<JSGCCallback> extraGCCallbacks; nsTArray<JSGCCallback> extraGCCallbacks;
bool mWatchdogHibernating; bool mWatchdogHibernating;
PRTime mLastActiveTime; // -1 if active NOW PRTime mLastActiveTime; // -1 if active NOW
XPCIncrementalReleaseRunnable *mReleaseRunnable; nsRefPtr<XPCIncrementalReleaseRunnable> mReleaseRunnable;
js::GCSliceCallback mPrevGCSliceCallback; js::GCSliceCallback mPrevGCSliceCallback;
nsCOMPtr<nsIException> mPendingException; nsCOMPtr<nsIException> mPendingException;