[gnome-commander] Free memory



commit 452baceea36f75ec8db6396422bec317c3b507d8
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Mar 6 00:35:37 2021 +0100

    Free memory

 src/gnome-cmd-file-popmenu.cc | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index bed8eb6e..bcefa24d 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -618,6 +618,8 @@ guint add_action_script_entries(GtkUIManager *uiManager, GList *files)
         gtk_ui_manager_add_ui (uiManager, mergeIdActionScripts, "/FilePopup/ActionScripts", scriptName,
                                scriptName, GTK_UI_MANAGER_AUTO, true);
         g_free(scriptName);
+        g_free(scriptData->path);
+        g_free(scriptData);
         position++;
     }
     g_free (scriptsDir);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]