[gnome-commander] Memory leak fix



commit 11708c741daa0bd197173841d3abc35e5e0a6ee4
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Sep 29 22:56:40 2021 +0200

    Memory leak fix

 src/gnome-cmd-file-popmenu.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index 0915d34d..190b587e 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -828,7 +828,6 @@ guint add_open_with_entries(GtkUIManager *ui_manager, GnomeCmdFileList *gnomeCmd
         gtk_ui_manager_add_ui (ui_manager, mergeIdOpenWith, "/FilePopup/OpenWithDefault", 
openWithDefaultAppLabel, "Open",
                                GTK_UI_MANAGER_AUTO, true);
         g_free (defaultAppIconPath);
-        g_free(openWithDefaultAppLabel);
         g_free(appStockId);
     }
     else
@@ -840,6 +839,7 @@ guint add_open_with_entries(GtkUIManager *ui_manager, GnomeCmdFileList *gnomeCmd
                                GTK_UI_MANAGER_SEPARATOR, false);
     }
     newTopMenuItems++;
+    g_free(openWithDefaultAppLabel);
 
     // Add menu items in the "Open with" submenu
     gint ii = -1;


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