mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 21:14:22 +01:00
Fix memory leak in exit dialogue listener
This commit is contained in:
parent
6fdceb0a26
commit
ce1a2e78fb
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user