X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmain_mono.cpp;h=84e6fae86880e63a1082ed94c6abb4b301ac1a07;hp=a7565c56a98f091893d6d0fbb7ed1de225bb767a;hb=ec07b6300b6b3b125127ad2d7cd42fabeb020b1b;hpb=64ff44560cc13569ab4968e3d974b0b7e9820607 diff --git a/src/common/main_mono.cpp b/src/common/main_mono.cpp index a7565c56..84e6fae8 100644 --- a/src/common/main_mono.cpp +++ b/src/common/main_mono.cpp @@ -57,9 +57,13 @@ int main(int argc, char **argv) { mainWin->init(); int exitCode = app.exec(); //delete core; + + // the mainWin has to be deleted before the Core + // if not Quassel will crash on exit under certain conditions since the gui + // still wants to access clientdata + delete mainWin; Client::destroy(); Core::destroy(); - delete mainWin; //delete guiProxy; //delete coreProxy; //delete global;