From: Jose Dapena Paz Date: Thu, 27 Aug 2009 11:36:46 +0000 (+0200) Subject: Fix reference leaks causing power consuption because of running IDLE. X-Git-Tag: 3.0.17-rc43~2 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=2f3a696a7f1f4b147ae531270a7aaf69ea900ab7 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). --- 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 */