prefs: Fix memory leak

This commit is contained in:
Jasper St. Pierre 2011-12-18 22:55:26 -05:00
parent 796ca6746d
commit 2eb3ff4bfb

View File

@ -914,6 +914,8 @@ do_override (char *key,
detailed_signal = g_strdup_printf ("changed::%s", key);
handler_id = g_signal_connect (settings, detailed_signal,
G_CALLBACK (settings_changed), NULL);
g_free (detailed_signal);
g_object_set_data (G_OBJECT (settings), key, GUINT_TO_POINTER (handler_id));
settings_changed (settings, key, NULL);