Fix bustage from bug 472674
authorBlake Kaplan <mrbkap@gmail.com>
Wed, 21 Jan 2009 11:37:30 -0800
changeset 24012 427d147720e331b82820df79436ec0cc3944ebdd
parent 24011 e32e8814d84fff6b5379da53d3b97f2dea1fc94e
child 24013 44fd2796cee1a02147845b92cc0d983feaf5bc72
push id4848
push usermrbkap@mozilla.com
push dateWed, 21 Jan 2009 19:38:54 +0000
treeherdermozilla-central@427d147720e3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs472674
milestone1.9.2a1pre
Fix bustage from bug 472674
xpfe/appshell/src/nsContentTreeOwner.cpp
--- a/xpfe/appshell/src/nsContentTreeOwner.cpp
+++ b/xpfe/appshell/src/nsContentTreeOwner.cpp
@@ -794,18 +794,18 @@ public:
 #endif
         mService->Push(nsnull);
       NS_ASSERTION(NS_SUCCEEDED(rv), "Mismatched push/pop");
     }
   }
 
   ~NullJSContextPusher() {
     if (mService) {
+      JSContext *cx;
 #ifdef DEBUG
-      JSContext *cx;
       nsresult rv =
 #endif
         mService->Pop(&cx);
       NS_ASSERTION(NS_SUCCEEDED(rv) && !cx, "Bad pop!");
     }
   }
 
 private: