[evolution-data-server] CamelVeeSummary::message_info_from_uid: Return referenced info
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelVeeSummary::message_info_from_uid: Return referenced info
- Date: Thu, 23 Apr 2015 15:41:24 +0000 (UTC)
commit 45e13e9b2fdf286e0cf07d2d64ae149e556d85a5
Author: Milan Crha <mcrha redhat com>
Date: Thu Apr 23 17:38:54 2015 +0200
CamelVeeSummary::message_info_from_uid: Return referenced info
It's a replacement for CamelFolderSummary::message_info_from_uid, which
does reference the returned message info, thus this one should return
referenced info as well.
camel/camel-vee-summary.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-vee-summary.c b/camel/camel-vee-summary.c
index a1ea8a8..d516c3b 100644
--- a/camel/camel-vee-summary.c
+++ b/camel/camel-vee-summary.c
@@ -293,7 +293,9 @@ message_info_from_uid (CamelFolderSummary *s,
CamelMessageInfo *info;
info = camel_folder_summary_peek_loaded (s, uid);
- if (!info) {
+ if (info) {
+ camel_message_info_ref (info);
+ } else {
CamelVeeMessageInfo *vinfo;
CamelFolder *orig_folder;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]