From a7a908658ab2fc90478cf2621b28ed610fc68d74 Mon Sep 17 00:00:00 2001 From: SimoneN64 Date: Mon, 10 Jul 2023 21:20:02 +0200 Subject: [PATCH] Should use SDL_free for drag and drop char* --- src/emulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index 67510fea..4ce93ef1 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -289,7 +289,7 @@ void Emulator::run() { char *droppedDir = event.drop.file; if(droppedDir) { loadROM(droppedDir); - free(droppedDir); + SDL_free(droppedDir); } } break;