[empathy] LogWindow: stop retrieving logs if the window is closed



commit 55d7a944fa0783718a69e4d1b5e574f326befa58
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Tue Jul 12 10:26:17 2011 +0100

    LogWindow: stop retrieving logs if the window is closed

 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 6cff6be..e5c9350 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -3136,7 +3136,10 @@ log_manager_got_dates_cb (GObject *manager,
   GError *error = NULL;
 
   if (log_window == NULL)
-    goto out;
+    {
+      ctx_free (ctx);
+      return;
+    }
 
   if (log_window->priv->count != ctx->count)
     goto out;



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