From edfaabd0bb8bbb837d185a111b0eedacf3ce433d Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Tue, 17 Oct 2023 11:09:30 -0700 Subject: [PATCH] Fix memory leak with dropped files. --- RendererBackend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RendererBackend.cpp b/RendererBackend.cpp index b5f47ed..fb9a795 100644 --- a/RendererBackend.cpp +++ b/RendererBackend.cpp @@ -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); } } }