summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-12-01 14:00:50 +0100
committerlukefromdc <[email protected]>2018-12-03 17:37:56 -0500
commitbd0d9985b266d4fa383213a0e61925cbc1c87b7b (patch)
treeba2387cbcc3c18412d7a4e78302302e9d006b01d
parent78607a57693e0141cd7221c39cb019bbb6b42c3e (diff)
downloadcaja-bd0d9985b266d4fa383213a0e61925cbc1c87b7b.tar.bz2
caja-bd0d9985b266d4fa383213a0e61925cbc1c87b7b.tar.xz
caja-desktop-link-monitor: Fix memory leak
'g_strconcat' needs to be freed
-rw-r--r--libcaja-private/caja-desktop-link-monitor.c9
1 files 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