all repos — fluxbox @ 9f4b2978c38cf2278f80a2b5e20d25524b6f8d48

custom fork of the fluxbox windowmanager

fix possible segfault: auto_ptr fluxbox may be 0 ..
mathias mathias
commit

9f4b2978c38cf2278f80a2b5e20d25524b6f8d48

parent

f7c92157ac358c295de60308fc5b80ab45cdb0ec

1 files changed, 7 insertions(+), 2 deletions(-)

jump to
M src/main.ccsrc/main.cc

@@ -273,8 +273,13 @@ cerr<<"Fluxbox: "<<_FBTEXT(main, ErrorUnknown, "Unknown error", "Error message")<<"."<<endl;

abort(); } - bool restarting = fluxbox->isRestarting(); - const std::string restart_argument(fluxbox->getRestartArgument()); + bool restarting = false; + std::string restart_argument; + + if (fluxbox.get()) { + restarting = fluxbox->isRestarting(); + restart_argument = fluxbox->getRestartArgument(); + } // destroy fluxbox fluxbox.reset(0);