diff options
-rw-r--r-- | gtk/src/presets.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |