aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-05-26 22:36:45 +0800
committerDan Winship <danw@src.gnome.org>2000-05-26 22:36:45 +0800
commit8ad057518fc70b8eb1ac7eaabb01a7950e3f63c0 (patch)
tree9047ddcbffeab70f0ab257b876c65e2364e6c8ee /mail/mail-format.c
parent5de3176b65b94b487e4cd11686c3f473a0966f6c (diff)
downloadgsoc2013-evolution-8ad057518fc70b8eb1ac7eaabb01a7950e3f63c0.tar.gz
gsoc2013-evolution-8ad057518fc70b8eb1ac7eaabb01a7950e3f63c0.tar.zst
gsoc2013-evolution-8ad057518fc70b8eb1ac7eaabb01a7950e3f63c0.zip
Update for PersistStream changes
* mail-format.c (handle_via_bonobo): Update for PersistStream changes svn path=/trunk/; revision=3216
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index ad7aa0fff6..46e279dd49 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1002,17 +1002,18 @@ handle_via_bonobo (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
camel_medium_get_content_object (CAMEL_MEDIUM (part)));
mimetype = g_strdup_printf ("%s/%s", type->type, type->subtype);
goad_id = gnome_mime_get_value (mimetype, "bonobo-goad-id");
- g_free (mimetype);
if (!goad_id)
goad_id = gnome_mime_get_value (type->type, "bonobo-goad-id");
if (!goad_id) {
+ g_free (mimetype);
handle_undisplayable (part, root, box);
return;
}
embedded = bonobo_widget_new_subdoc (goad_id, NULL);
if (!embedded) {
+ g_free (mimetype);
handle_undisplayable (part, root, box);
return;
}
@@ -1021,6 +1022,7 @@ handle_via_bonobo (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
persist = (Bonobo_PersistStream) bonobo_object_client_query_interface (
server, "IDL:Bonobo/PersistStream:1.0", NULL);
if (persist == CORBA_OBJECT_NIL) {
+ g_free (mimetype);
bonobo_object_unref (BONOBO_OBJECT (embedded));
handle_undisplayable (part, root, box);
return;
@@ -1040,7 +1042,8 @@ handle_via_bonobo (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
Bonobo_PersistStream_load (persist,
bonobo_object_corba_objref (
BONOBO_OBJECT (bstream)),
- &ev);
+ mimetype, &ev);
+ g_free (mimetype);
bonobo_object_unref (BONOBO_OBJECT (bstream));
Bonobo_Unknown_unref (persist, &ev);
CORBA_Object_release (persist, &ev);