aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-03 20:37:50 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 19:34:57 +0800
commit7e79c7c05aeee5497f31935ae79db1abee141875 (patch)
tree841976c7380f66809a3210e8a20a7a38a8c02bf1
parent711272a739ab7add8972c5df146c24b62c0fdcf7 (diff)
downloadgsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.tar
gsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.tar.gz
gsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.tar.bz2
gsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.tar.lz
gsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.tar.xz
gsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.tar.zst
gsoc2013-empathy-7e79c7c05aeee5497f31935ae79db1abee141875.zip
LogWindow: don't crash if closed while retrieving logs
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 6482a5eed..84af51ce4 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;