Commit 057cd53e authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Fix the NetworkStatusAgent::dispose() as it may be called multiple times

2008-04-10  Federico Mena Quintero  <federico@novell.com>

	* main-menu/src/network-status-agent.c
	(network_status_agent_dispose): NULL out the nm_client, since
	::dispose() can be called multiple times.
Signed-off-by: 's avatarFederico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=445
parent 18d2df83
2008-04-10 Federico Mena Quintero <federico@novell.com>
* main-menu/src/network-status-agent.c
(network_status_agent_dispose): NULL out the nm_client, since
::dispose() can be called multiple times.
2008-04-04 Federico Mena Quintero <federico@novell.com>
* main-menu/src/main-menu-ui.c: Monitor the recent-files store on
......
......@@ -118,8 +118,10 @@ static void
network_status_agent_dispose (GObject * obj)
{
NetworkStatusAgentPrivate *priv = NETWORK_STATUS_AGENT_GET_PRIVATE (obj);
if (priv->nm_client)
if (priv->nm_client) {
g_object_unref (priv->nm_client);
priv->nm_client = NULL;
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment