From 47a099828512f6ba788a12542385d6c48e9ee082 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Tue, 4 Jan 2022 12:05:57 +0100 Subject: [PATCH] o, good catch Generic --- src/frontend/qt_sdl/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 597400c6..59fd088b 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -2435,6 +2435,7 @@ void MainWindow::onImportSavefile() fread(data, len, 1, f); NDS::LoadSave(data, len); + delete[] data; fclose(f); emuThread->emuUnpause();