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 331750 750ff8b64b21633ccdc2e017d573c552d2ba2268
parent 331749 68b14d04ea4e78be6e905a739df95e74cd1f97fd
child 331751 7df73cfe3c2f558242b806c6ae021dd363efebc5
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [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.