From bd0d9985b266d4fa383213a0e61925cbc1c87b7b Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 1 Dec 2018 14:00:50 +0100 Subject: caja-desktop-link-monitor: Fix memory leak 'g_strconcat' needs to be freed --- libcaja-private/caja-desktop-link-monitor.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libcaja-private/caja-desktop-link-monitor.c b/libcaja-private/caja-desktop-link-monitor.c index ee5d85d4..9d1e5d71 100644 --- a/libcaja-private/caja-desktop-link-monitor.c +++ b/libcaja-private/caja-desktop-link-monitor.c @@ -339,11 +339,11 @@ desktop_volumes_visible_changed (gpointer callback_data) static void create_link_and_add_preference (CajaDesktopLink **link_ref, CajaDesktopLinkType link_type, - const char *preference_key, - GCallback callback, - gpointer callback_data) + const char *preference_key, + GCallback callback, + gpointer callback_data) { - char *detailed_signal; + gchar *detailed_signal; if (g_settings_get_boolean (caja_desktop_preferences, preference_key)) { @@ -354,6 +354,7 @@ create_link_and_add_preference (CajaDesktopLink **link_ref, g_signal_connect_swapped (caja_desktop_preferences, detailed_signal, callback, callback_data); + g_free (detailed_signal); } static void -- cgit v1.2.1