From 48837f8269e4ddcde3a7c86eb8ad06e6431d4acf Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Tue, 3 Feb 2009 09:03:35 +0000 Subject: [PATCH] Close ongoing calls at dispose time Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2396 --- libempathy/empathy-call-handler.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index dedf321c..1b4de168 100644 --- a/libempathy/empathy-call-handler.c +++ b/libempathy/empathy-call-handler.c @@ -191,11 +191,13 @@ empathy_call_handler_dispose (GObject *object) /* FIXME close the call ? */ if (priv->call != NULL) - g_object_unref (priv->call); + { + empathy_tp_call_close (priv->call); + g_object_unref (priv->call); + } priv->call = NULL; - /* release any references held by the object here */ if (G_OBJECT_CLASS (empathy_call_handler_parent_class)->dispose) G_OBJECT_CLASS (empathy_call_handler_parent_class)->dispose (object); -- 2.39.2