From 71ea31e21704fae22af9bf0d775c0e26c18be262 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 5 Mar 2004 07:10:27 +0000 Subject: ** See bug #55096. 2004-03-05 Not Zed ** See bug #55096. * importers/evolution-mbox-importer.c (process_item_fn): hack, unref when complete * importers/evolution-outlook-importer.c (outlook_importer_new): init status lock. (process_item_fn): hack, unref ourselves when we're complete. i think the shell leaks the ref. svn path=/trunk/; revision=24972 --- mail/importers/evolution-mbox-importer.c | 1 + mail/importers/evolution-outlook-importer.c | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'mail/importers') diff --git a/mail/importers/evolution-mbox-importer.c b/mail/importers/evolution-mbox-importer.c index 7e830a207a..9e08bf2087 100644 --- a/mail/importers/evolution-mbox-importer.c +++ b/mail/importers/evolution-mbox-importer.c @@ -96,6 +96,7 @@ process_item_fn(EvolutionImporter *eimporter, CORBA_Object listener, void *data, result = GNOME_Evolution_ImporterListener_OK; GNOME_Evolution_ImporterListener_notifyResult(listener, result, FALSE, ev); + bonobo_object_unref(BONOBO_OBJECT(eimporter)); } static void diff --git a/mail/importers/evolution-outlook-importer.c b/mail/importers/evolution-outlook-importer.c index 3a8b334ba8..800d318e76 100644 --- a/mail/importers/evolution-outlook-importer.c +++ b/mail/importers/evolution-outlook-importer.c @@ -97,6 +97,16 @@ typedef struct oe_msg_segmentheader oe_msg_segmentheader; static void process_item_fn(EvolutionImporter *eimporter, CORBA_Object listener, void *data, CORBA_Environment *ev) { + GNOME_Evolution_ImporterListener_ImporterResult result; +#if 0 + if (camel_exception_is_set(importer->ex)) + result = GNOME_Evolution_ImporterListener_BAD_FILE; + else +#endif + result = GNOME_Evolution_ImporterListener_OK; + + GNOME_Evolution_ImporterListener_notifyResult(listener, result, FALSE, ev); + bonobo_object_unref(BONOBO_OBJECT(eimporter)); } @@ -240,7 +250,7 @@ outlook_importer_new(void) OutlookImporter *oli; oli = g_new0 (OutlookImporter, 1); - + oli->status_lock = g_mutex_new(); importer = evolution_importer_new (NULL, support_format_fn, load_file_fn, process_item_fn, NULL, oli); g_object_weak_ref((GObject *)importer, importer_destroy_cb, oli); -- cgit