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:
parent
6369f10d52
commit
e267515ed6
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue