summaryrefslogtreecommitdiff
path: root/plugins/keybindings
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2010-11-22 23:38:21 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2010-11-22 23:38:21 -0500
commitbf92d44a2bae61e59dc57c875f335f378b5b4ce6 (patch)
tree1e7aa7d0b8394a6be7b375c0511a8862bce9a560 /plugins/keybindings
parentb9c73d7e1d5a9c9dc350dcd751e54e757c7a1dcf (diff)
downloadgnome-settings-daemon-bf92d44a2bae61e59dc57c875f335f378b5b4ce6.tar.gz
various: more fixing of the _stop() path
Diffstat (limited to 'plugins/keybindings')
-rw-r--r--plugins/keybindings/gsd-keybindings-manager.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/keybindings/gsd-keybindings-manager.c b/plugins/keybindings/gsd-keybindings-manager.c
index 3d5435e0..a5f70076 100644
--- a/plugins/keybindings/gsd-keybindings-manager.c
+++ b/plugins/keybindings/gsd-keybindings-manager.c
@@ -635,17 +635,17 @@ gsd_keybindings_manager_stop (GsdKeybindingsManager *manager)
p->screens = NULL;
}
- for (l = p->binding_list; l; l = l->next) {
- Binding *b = l->data;
- g_free (b->binding_str);
- g_free (b->action);
- g_free (b->gconf_key);
- g_free (b->previous_key.keycodes);
- g_free (b->key.keycodes);
- g_free (b);
- }
-
if (p->binding_list != NULL) {
+ for (l = p->binding_list; l; l = l->next) {
+ Binding *b = l->data;
+ g_free (b->binding_str);
+ g_free (b->action);
+ g_free (b->gconf_key);
+ g_free (b->previous_key.keycodes);
+ g_free (b->key.keycodes);
+ g_free (b);
+ }
+
g_slist_free (p->binding_list);
p->binding_list = NULL;
}