summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private')
-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