From 2f3a696a7f1f4b147ae531270a7aaf69ea900ab7 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Thu, 27 Aug 2009 13:36:46 +0200 Subject: [PATCH] Fix reference leaks causing power consuption because of running IDLE. * src/modest-mail-operation.c (inbox_refreshed_cb): fix reference leaks in new_headers list, that could cause IDLE to be running after receiving a message, forever (fixes NB#131550). --- src/modest-mail-operation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 3b12158..aa1d1cd 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -1765,11 +1765,13 @@ inbox_refreshed_cb (TnyFolder *inbox, NULL, msg_info); g_object_unref (folder); + g_object_unref (header); msg_num++; tny_iterator_next (iter); } g_object_unref (iter); + g_object_unref (new_headers); /* The mail operation will finish when the last message is retrieved */ -- 1.7.9.5