[empathy] view_selection_changed_cb: don't unref NULL individual



commit 81c5f8b415c5835f200ea9d7d3d917481b6fd506
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue May 31 15:34:36 2011 +0200

    view_selection_changed_cb: don't unref NULL individual

 src/empathy-invite-participant-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c
index 4a66946..18a016c 100644
--- a/src/empathy-invite-participant-dialog.c
+++ b/src/empathy-invite-participant-dialog.c
@@ -118,7 +118,7 @@ view_selection_changed_cb (GtkWidget *treeview,
 
   gtk_widget_set_sensitive (self->priv->invite_button, individual != NULL);
 
-  g_object_unref (individual);
+  tp_clear_object (&individual);
 }
 
 /* Return the TpContact of @individual which is on the same connection as the



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