aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-16 14:12:16 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-16 14:12:16 -0500
commitf6a6e8cfee89492f4f94f9382d02831b140fffbc (patch)
tree64ca737c62852793d5eb20e9085eef87e93150d2 /src
parentbc34f047520493d166e785a5fca971f7a4a830a9 (diff)
downloadayatana-indicator-session-f6a6e8cfee89492f4f94f9382d02831b140fffbc.tar.gz
ayatana-indicator-session-f6a6e8cfee89492f4f94f9382d02831b140fffbc.tar.bz2
ayatana-indicator-session-f6a6e8cfee89492f4f94f9382d02831b140fffbc.zip
plug two leaked strings in keybinding_changed()
Diffstat (limited to 'src')
-rw-r--r--src/device-menu-mgr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c
index cfdb55d..d081937 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -166,11 +166,12 @@ keybinding_changed (GSettings *settings,
}
if (g_strcmp0 (key, KEY_LOCK_SCREEN) == 0) {
- g_debug("Keybinding changed to: %s", g_settings_get_string(settings, key));
+ gchar * val = g_settings_get_string(settings, key);
+ g_debug("Keybinding changed to: %s", val);
if (lock_menuitem != NULL) {
- dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem,
- g_settings_get_string(settings, key));
+ dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem, val);
}
+ g_free (val);
}
return;
}