diff options
Diffstat (limited to 'backends/dc')
-rw-r--r-- | backends/dc/vmsave.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/dc/vmsave.cpp b/backends/dc/vmsave.cpp index 0a090cd244..9b57e583b8 100644 --- a/backends/dc/vmsave.cpp +++ b/backends/dc/vmsave.cpp @@ -69,9 +69,8 @@ static void displaySaveResult(vmsaveResult res) break; } - Dialog *dialog = new MessageDialog(g_gui, buf); - dialog->runModal(); - delete dialog; + MessageDialog dialog(g_gui, buf); + dialog.runModal(); } static vmsaveResult trySave(const char *gamename, const char *data, int size, |