From 09c8c6dee9aaf2ff5e19bc78c3c59d5013098990 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 22 Feb 2010 18:00:59 +0000 Subject: call-window: call empathy_call_handler_stop_call when closing a call This will allow us to properly terminate the call. --- src/empathy-call-window.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 21a2e68a5..99e1cc8ff 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1331,7 +1331,10 @@ empathy_call_window_dispose (GObject *object) } if (priv->handler != NULL) - g_object_unref (priv->handler); + { + empathy_call_handler_stop_call (priv->handler); + g_object_unref (priv->handler); + } priv->handler = NULL; if (priv->pipeline != NULL) @@ -2667,6 +2670,10 @@ static void empathy_call_window_hangup_cb (gpointer object, EmpathyCallWindow *window) { + EmpathyCallWindowPriv *priv = GET_PRIV (window); + + empathy_call_handler_stop_call (priv->handler); + if (empathy_call_window_disconnected (window)) gtk_widget_destroy (GTK_WIDGET (window)); } -- cgit v1.2.3