gtk_object_ref the component listener before emitting the "component_died"

2002-09-23  Rodrigo Moya <rodrigo@ximian.com>

	* e-component-listener.c (ping_component_callback): gtk_object_ref the
	component listener before emitting the "component_died" signal, since
	in most cases, the component listener will be destroyed in the
	callbacks for that signal.

svn path=/trunk/; revision=18164
This commit is contained in:
Rodrigo Moya
2002-09-23 11:49:37 +00:00
committed by Rodrigo Moya
parent bfc419ce4b
commit b6adbdba7d
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2002-09-23 Rodrigo Moya <rodrigo@ximian.com>
* e-component-listener.c (ping_component_callback): gtk_object_ref the
component listener before emitting the "component_died" signal, since
in most cases, the component listener will be destroyed in the
callbacks for that signal.
2002-09-22 Dan Winship <danw@ximian.com>
* e-config-listener.c: Fix some non-ANSI switch statements

View File

@ -143,11 +143,14 @@ ping_component_callback (gpointer user_data)
out:
/* the component has died, so we notify and close the timeout */
gtk_object_ref (GTK_OBJECT (cl));
gtk_signal_emit (GTK_OBJECT (cl), comp_listener_signals[COMPONENT_DIED]);
cl->priv->component = CORBA_OBJECT_NIL;
cl->priv->ping_timeout_id = -1;
gtk_object_unref (GTK_OBJECT (cl));
return FALSE;
}