Fix memory leak with dropped files.
This commit is contained in:
parent
f1d8334335
commit
edfaabd0bb
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ int RendererBackend::Run() {
|
|||
if (event.type == SDL_DROPFILE) {
|
||||
if (event.drop.file != NULL) {
|
||||
Drop(std::string(event.drop.file));
|
||||
free(event.drop.file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue