[empathy] log_window_get_messages_for_date: don't leak chat_id and account



commit 0894474e8cfed8dfa4824205a9d43e76269b50b0
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Nov 24 16:01:02 2010 +0100

    log_window_get_messages_for_date: don't leak chat_id and account

 libempathy-gtk/empathy-log-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 9f60064..650c3b4 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -1119,6 +1119,9 @@ log_window_get_messages_for_date (EmpathyLogWindow *window,
       date,
       log_window_got_messages_for_date_cb,
       (gpointer) window);
+
+  g_free (chat_id);
+  g_object_unref (account);
 }
 
 static void



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