diff options
author | John Stebbins <[email protected]> | 2017-09-29 16:29:44 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-11-06 08:19:49 -0800 |
commit | 42da759bcff01de6c4a7b6311312e0d2fbbf76fe (patch) | |
tree | 29e92f66ae0b3d86ff8e9ca9da0fb2ea57817123 /gtk | |
parent | d2486faa36b5e000d995a1eaeda94f6965611e6a (diff) |
LinGui: fix small memory leaks
Diffstat (limited to 'gtk')
-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; |