network: Disconnect from signal on finalize

The connection editor connects to permission-changed on its NMClient,
but didn't disconnect from that signal when dropping the NMClient
reference in finalize.

https://bugzilla.gnome.org/show_bug.cgi?id=700989
This commit is contained in:
Bastien Nocera 2013-09-07 14:38:41 -03:00
parent 6369f10d52
commit e267515ed6

View file

@ -182,6 +182,8 @@ net_connection_editor_finalize (GObject *object)
{ {
NetConnectionEditor *editor = NET_CONNECTION_EDITOR (object); NetConnectionEditor *editor = NET_CONNECTION_EDITOR (object);
if (editor->permission_id > 0 && editor->client)
g_signal_handler_disconnect (editor->client, editor->permission_id);
g_clear_object (&editor->connection); g_clear_object (&editor->connection);
g_clear_object (&editor->orig_connection); g_clear_object (&editor->orig_connection);
if (editor->window) { if (editor->window) {