Skip to content


caja-desktop-link-monitor: Fix memory leak
Browse files Browse the repository at this point in the history
'g_strconcat' needs to be freed
  • Loading branch information
sc0w authored and lukefromdc committed Dec 3, 2018
1 parent 78607a5 commit bd0d998
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libcaja-private/caja-desktop-link-monitor.c
Expand Up @@ -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))
Expand All @@ -354,6 +354,7 @@ create_link_and_add_preference (CajaDesktopLink **link_ref,
g_signal_connect_swapped (caja_desktop_preferences,
callback, callback_data);
g_free (detailed_signal);

static void
Expand Down

0 comments on commit bd0d998

Please sign in to comment.