Fix memory leak with dropped files.

This commit is contained in:
Zachary Hall 2023-10-17 11:09:30 -07:00
parent f1d8334335
commit edfaabd0bb

View file

@ -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);
}
}
}