[empathy/gnome-2-34] Give the FilterResultData a reference to account



commit c4bfd9ec3f2df6e38b66023d82bc6c17c8ed4348
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Tue Mar 22 19:41:16 2011 +0000

    Give the FilterResultData a reference to account
    
    This partially reverts the regression introduce in
    c5220a248d7626129eadce95a606eb4157aafe71, but gives a more explicit
    reference to the data structure which will hopefully make the code more
    clear

 libempathy-gtk/empathy-account-chooser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 00a1830..b7eebe5 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -818,7 +818,7 @@ account_chooser_update_iter (EmpathyAccountChooser *chooser,
 
 	data = g_slice_new0 (FilterResultCallbackData);
 	data->chooser = chooser;
-	data->account = account;
+	data->account = g_object_ref (account);
 	data->iter = g_memdup (iter, sizeof (GtkTreeIter));
 
 	if (priv->filter)



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