]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix small memory leaks
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 29 Sep 2017 23:29:44 +0000 (16:29 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 6 Nov 2017 16:19:49 +0000 (08:19 -0800)
gtk/src/presets.c

index 16ef3450001b07a7893530dc7cb47ca910a6849c..31fa26d7c5484c60403311df07b68831eb71bc45 100644 (file)
@@ -1234,6 +1234,7 @@ ghb_presets_menu_init(signal_user_data_t *ud)
                                                     preset_path);
                     g_menu_append(submenu, name, detail_action);
                     free(preset_path);
+                    free(detail_action);
                 }
                 if (type == 1 &&
                     g_strv_contains((const char**)official_names, folder_name))
@@ -1253,6 +1254,7 @@ ghb_presets_menu_init(signal_user_data_t *ud)
         g_menu_append_section(menu, type ? "Custom" : "Official",
                               G_MENU_MODEL(section));
     }
+    g_free(path);
     g_strfreev(official_names);
 
     GtkMenuButton * mb;