[empathy: 63/80] LogWindow: don't crash if closed while retrieving logs



commit 7e79c7c05aeee5497f31935ae79db1abee141875
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Tue May 3 13:37:50 2011 +0100

    LogWindow: don't crash if closed while retrieving logs

 libempathy-gtk/empathy-log-window.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 6482a5e..84af51c 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -2349,7 +2349,10 @@ log_window_got_messages_for_date_cb (GObject *manager,
   gint n;
 
   if (log_window == NULL)
-    goto out;
+    {
+      ctx_free (ctx);
+      return;
+    }
 
   if (log_window->count != ctx->count)
     goto out;



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