[empathy] empathy_call_window_dispose: disconnect signals before unrefing the contact



commit 4aa24ac253f4bb11dafc41e40cbb9f3913ac7812
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Apr 29 11:50:34 2009 +0100

    empathy_call_window_dispose: disconnect signals before unrefing the contact
---
 src/empathy-call-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index a0de800..22a9eef 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -731,9 +731,9 @@ empathy_call_window_dispose (GObject *object)
 
   if (priv->contact != NULL)
     {
-      g_object_unref (priv->contact);
       g_signal_handlers_disconnect_by_func (priv->contact,
           contact_name_changed_cb, self);
+      g_object_unref (priv->contact);
       priv->contact = NULL;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]