From: John Stebbins Date: Fri, 29 Sep 2017 23:29:44 +0000 (-0700) Subject: LinGui: fix small memory leaks X-Git-Tag: 1.1.0~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42da759bcff01de6c4a7b6311312e0d2fbbf76fe;p=handbrake LinGui: fix small memory leaks --- diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 16ef34500..31fa26d7c 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -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;