From 55d7a944fa0783718a69e4d1b5e574f326befa58 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Tue, 12 Jul 2011 10:26:17 +0100 Subject: LogWindow: stop retrieving logs if the window is closed --- libempathy-gtk/empathy-log-window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 6cff6beb9..e5c935011 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; -- cgit v1.2.3