summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-12-01 14:00:50 +0100
committerlukefromdc <[email protected]>2018-12-01 19:21:13 +0000
commit09eda67f77d98a5b85c1852e813f39c7380483bd (patch)
tree077ed077b8343ae87d3e1165184f3d3235136e5a
parent056832f5b6f0f122eb4f9d79c4363ccc818b8f8a (diff)
downloadcaja-09eda67f77d98a5b85c1852e813f39c7380483bd.tar.bz2
caja-09eda67f77d98a5b85c1852e813f39c7380483bd.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