Bug 1264469 - reset the string gAbsoluteArgv0Path when the main-loop is completed, CLOSED TREE, r=me
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 19 Apr 2016 14:26:31 +0200
changeset 293810 750ff8b64b21633ccdc2e017d573c552d2ba2268
parent 293809 68b14d04ea4e78be6e905a739df95e74cd1f97fd
child 293811 7df73cfe3c2f558242b806c6ae021dd363efebc5
push id75336
push useramarchesini@mozilla.com
push dateTue, 19 Apr 2016 12:27:20 +0000
treeherdermozilla-inbound@750ff8b64b21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1264469
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1264469 - reset the string gAbsoluteArgv0Path when the main-loop is completed, CLOSED TREE, r=me
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -4448,16 +4448,18 @@ XREMain::XRE_main(int argc, char* argv[]
 
   // run!
   rv = XRE_mainRun();
 
 #ifdef MOZ_INSTRUMENT_EVENT_LOOP
   mozilla::ShutdownEventTracing();
 #endif
 
+  gAbsoluteArgv0Path.Truncate();
+
   // Check for an application initiated restart.  This is one that
   // corresponds to nsIAppStartup.quit(eRestart)
   if (rv == NS_SUCCESS_RESTART_APP
       || rv == NS_SUCCESS_RESTART_APP_NOT_SAME_PROFILE) {
     appInitiatedRestart = true;
 
     // We have an application restart don't do any shutdown checks here
     // In particular we don't want to poison IO for checking late-writes.