Skip to content
Browse files

caja-desktop-link-monitor: Fix memory leak

'g_strconcat' needs to be freed
  • Loading branch information...
sc0w authored and lukefromdc committed Dec 1, 2018
1 parent 78607a5 commit bd0d9985b266d4fa383213a0e61925cbc1c87b7b
Showing with 5 additions and 4 deletions.
  1. +5 −4 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,
callback, callback_data);
g_free (detailed_signal);

static void

0 comments on commit bd0d998

Please sign in to comment.
You can’t perform that action at this time.