From 3420538a5c595b67da2a59c590a7aa628046ffb7 Mon Sep 17 00:00:00 2001 From: 5 Date: Tue, 25 Sep 2001 22:19:40 +0000 Subject: Only unref info if we got it. 2001-09-25 * camel-folder.c (get_unread_message_count): Only unref info if we got it. svn path=/trunk/; revision=13130 --- camel/ChangeLog | 3 +++ camel/camel-folder.c | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 97ccb5bfd7..375d10b5f7 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2001-09-25 + * camel-folder.c (get_unread_message_count): Only unref info if we + got it. + * camel-operation.c (camel_operation_unref): Fix for !threads enabled not ccompiling. (camel_operation_ref): Assert refcount > 0. diff --git a/camel/camel-folder.c b/camel/camel-folder.c index ec23a55c71..ead3e969be 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -436,10 +436,11 @@ get_unread_message_count(CamelFolder *folder) for (i=0; isummary, i); - if (info && !(info->flags & CAMEL_MESSAGE_SEEN)) - unread++; - - camel_folder_summary_info_free(folder->summary, info); + if (info) { + if (!(info->flags & CAMEL_MESSAGE_SEEN)) + unread++; + camel_folder_summary_info_free(folder->summary, info); + } } return unread; -- cgit v1.2.3