2007-12-07 Dan Williams <dcbw@redhat.com>

Noticed by Christian Persch <chpe@gnome.org>

	Always chain up to parent object in dispose and finalize handlers.
		(gnome.org #433112)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3154 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2007-12-07 15:32:45 +00:00
parent b91db8d429
commit eda2d662cd
17 changed files with 52 additions and 36 deletions

View File

@@ -305,20 +305,12 @@ nm_supplicant_interface_dispose (GObject *object)
guint32 sm_state;
if (priv->dispose_has_run) {
/* If dispose did already run, return. */
G_OBJECT_CLASS (nm_supplicant_interface_parent_class)->dispose (object);
return;
}
/* Make sure dispose does not run twice. */
priv->dispose_has_run = TRUE;
/*
* In dispose, you are supposed to free all types referenced from this
* object which might themselves hold a reference to self. Generally,
* the most simple solution is to unref all members on which you own a
* reference.
*/
/* Ask wpa_supplicant to remove this interface */
sm_state = nm_supplicant_manager_get_state (priv->smgr);
if (sm_state == NM_SUPPLICANT_MANAGER_STATE_IDLE) {