diff options
author | NotZed <NotZed@HelixCode.com> | 2000-03-05 11:00:35 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-03-05 11:00:35 +0800 |
commit | 48e373b1565b810bcf76642d9fc6c96f3a26a0b0 (patch) | |
tree | 5e06ce8cffc23d22c09ecf0958c52e757c7ac5f8 /camel/providers/mbox | |
parent | b42df6ac70b380296061e8c0f9020f3edc31e6c3 (diff) | |
download | gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.tar gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.tar.gz gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.tar.bz2 gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.tar.lz gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.tar.xz gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.tar.zst gsoc2013-evolution-48e373b1565b810bcf76642d9fc6c96f3a26a0b0.zip |
Ref the summary after we have got it.
2000-03-04 NotZed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-search.c
(camel_mbox_folder_search_by_expression): Ref the summary
after we have got it.
svn path=/trunk/; revision=2053
Diffstat (limited to 'camel/providers/mbox')
-rw-r--r-- | camel/providers/mbox/camel-mbox-search.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/providers/mbox/camel-mbox-search.c b/camel/providers/mbox/camel-mbox-search.c index 3e19adcd1a..515bd8842c 100644 --- a/camel/providers/mbox/camel-mbox-search.c +++ b/camel/providers/mbox/camel-mbox-search.c @@ -283,6 +283,16 @@ camel_mbox_folder_search_by_expression(CamelFolder *folder, const char *expressi /* setup out context */ ctx.folder = folder; ctx.summary = camel_folder_get_summary(folder, ex); + gtk_object_ref((GtkObject *)ctx.summary); + + if (camel_exception_get_id (ex)) { + printf ("Cannot get summary\n" + "Full description : %s\n", camel_exception_get_description (ex)); + /* FIXME: free shit */ + return NULL; + } + + ctx.message_info = camel_folder_summary_get_message_info_list(ctx.summary); ctx.message_current = NULL; ctx.index = ibex_open(CAMEL_MBOX_FOLDER(folder)->index_file_path, FALSE); |