Should use SDL_free for drag and drop char*
This commit is contained in:
@@ -56,7 +56,7 @@ void App::Run() {
|
||||
char *droppedDir = event.drop.file;
|
||||
if (droppedDir) {
|
||||
window.LoadROM(core, droppedDir);
|
||||
free(droppedDir);
|
||||
SDL_free(droppedDir);
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user