From bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 23 Apr 2010 10:28:53 -0400 Subject: Camel is now GObject-based. --- plugins/tnef-attachments/tnef-plugin.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/tnef-attachments') diff --git a/plugins/tnef-attachments/tnef-plugin.c b/plugins/tnef-attachments/tnef-plugin.c index f75fcf051b..8bb5341998 100644 --- a/plugins/tnef-attachments/tnef-plugin.c +++ b/plugins/tnef-attachments/tnef-plugin.c @@ -94,10 +94,10 @@ org_gnome_format_tnef(gpointer ep, EMFormatHookTarget *t) goto fail; if (camel_data_wrapper_decode_to_stream(content, out) == -1 || camel_stream_close(out) == -1) { - camel_object_unref(out); + g_object_unref (out); goto fail; } - camel_object_unref(out); + g_object_unref (out); /* Extracting the winmail.dat */ TNEFInitialize(&tnef); @@ -139,13 +139,13 @@ org_gnome_format_tnef(gpointer ep, EMFormatHookTarget *t) stream = camel_stream_fs_new_with_name(path, O_RDONLY, 0); content = camel_data_wrapper_new(); camel_data_wrapper_construct_from_stream(content, stream); - camel_object_unref(stream); + g_object_unref (stream); part = camel_mime_part_new(); camel_mime_part_set_encoding(part, CAMEL_TRANSFER_ENCODING_BINARY); camel_medium_set_content ((CamelMedium *)part, content); - camel_object_unref(content); + g_object_unref (content); type = em_format_snoop_type(part); if (type) @@ -156,7 +156,7 @@ org_gnome_format_tnef(gpointer ep, EMFormatHookTarget *t) g_free(path); camel_multipart_add_part(mp, part); - camel_object_unref(part); + g_object_unref (part); } closedir(dir); @@ -171,8 +171,8 @@ org_gnome_format_tnef(gpointer ep, EMFormatHookTarget *t) g_string_truncate(t->format->part_id, len); - camel_object_unref(mp); - camel_object_unref(mainpart); + g_object_unref (mp); + g_object_unref (mainpart); goto ok; fail: -- cgit v1.2.3