Should use SDL_free for drag and drop char*

This commit is contained in:
SimoneN64
2023-07-10 21:20:52 +02:00
parent 38ad014fa6
commit d0bccfc7e7

View File

@@ -56,7 +56,7 @@ void App::Run() {
char *droppedDir = event.drop.file;
if (droppedDir) {
window.LoadROM(core, droppedDir);
free(droppedDir);
SDL_free(droppedDir);
}
} break;
}