Should use SDL_free for drag and drop char*

This commit is contained in:
SimoneN64 2023-07-10 21:20:02 +02:00
parent 340c18b87b
commit a7a908658a

View file

@ -289,7 +289,7 @@ void Emulator::run() {
char *droppedDir = event.drop.file;
if(droppedDir) {
loadROM(droppedDir);
free(droppedDir);
SDL_free(droppedDir);
}
}
break;