]> git.mxchange.org Git - flightgear.git/commit
QtLauncher::initApp: store argc to avoid crash
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 22 Nov 2015 21:05:09 +0000 (21:05 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 22 Nov 2015 21:05:09 +0000 (21:05 +0000)
commit9d0fe40a457f989159b95da55517752a4fe85451
tree11031e00c25279a2b1268006b0674e2ba3fdc1bb
parent660c38ce72be14e2ffcf9d0526f28f3a442a4e79
QtLauncher::initApp: store argc to avoid crash

As QApplication only stores a reference to argc, it may crash if
the argc passed to it goes out of scope.  (One way to trigger this
is to pass an invalid --fg-root, triggering an initApp call from
Options::setupRoot.)  Copy argc to prevent this.
src/GUI/QtLauncher.cxx