From 48e373b1565b810bcf76642d9fc6c96f3a26a0b0 Mon Sep 17 00:00:00 2001 From: NotZed Date: Sun, 5 Mar 2000 03:00:35 +0000 Subject: Ref the summary after we have got it. 2000-03-04 NotZed * 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 --- camel/providers/mbox/camel-mbox-search.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'camel/providers') 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); -- cgit