libnm-glib: ensure NMRemoteConnection signals are disconnected (bgo #674484) (lp...
authorDan Williams <dcbw@redhat.com>
Mon, 23 Apr 2012 18:40:43 +0000 (13:40 -0500)
committerDan Williams <dcbw@redhat.com>
Mon, 23 Apr 2012 18:40:43 +0000 (13:40 -0500)
commit494f0a2e2047ca42adc73ecd6080068ce1fc9687
tree8d60ccb9d7c8165efcc587441beb07c2a9541a80
parent614c46f87b3931ae66fae35cfe7a342fed5f67b8
libnm-glib: ensure NMRemoteConnection signals are disconnected (bgo #674484) (lp:949743)

If a client keeps the connection around after NMRemoteSettings is done
with it (and has emitted 'removed' for that connection) then the
RemoteSettings object was still registered to receive signals for
that connection.  To prevent clients from being able to screw up
the RemoteSettings, disconnect any signals it may be listening for
when the connection is removed.  (it should be doing that anyway)
libnm-glib/nm-remote-settings.c