diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-02-03 17:03:35 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-02-03 17:03:35 +0800 |
commit | 48837f8269e4ddcde3a7c86eb8ad06e6431d4acf (patch) | |
tree | 1d7c87b6f8e88abe2a112bda9f3284fb804c6f05 /libempathy/empathy-call-handler.c | |
parent | 624bfae9d05409f86dddac5172b1ce0aea2527ae (diff) | |
download | gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.tar gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.tar.gz gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.tar.bz2 gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.tar.lz gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.tar.xz gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.tar.zst gsoc2013-empathy-48837f8269e4ddcde3a7c86eb8ad06e6431d4acf.zip |
Close ongoing calls at dispose time
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2396
Diffstat (limited to 'libempathy/empathy-call-handler.c')
-rw-r--r-- | libempathy/empathy-call-handler.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index dedf321c0..1b4de168d 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); |