Fix memory leak in exit dialogue listener

This commit is contained in:
simon.kagstrom 2010-03-10 11:20:47 +00:00
parent 6fdceb0a26
commit ce1a2e78fb

View File

@ -35,6 +35,7 @@ class ExitListener : public DialogueListener
{
void escapeCallback(DialogueBox *which, int selected)
{
delete this;
}
void selectCallback(DialogueBox *which, int selected)
@ -45,6 +46,8 @@ class ExitListener : public DialogueListener
Gui::gui->exitMenu();
TheC64->quit();
}
delete this;
}
};