aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/tnef-attachments
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-23 22:28:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-24 23:05:27 +0800
commitbc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7 (patch)
treef5d0cc91fc1568431e0b457406a9b3ea21157e0e /plugins/tnef-attachments
parentf862e946b83d5f70001c3d81290ecc8a0d8ca2a0 (diff)
downloadgsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.tar.gz
gsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.tar.zst
gsoc2013-evolution-bc90469e7f3bfd31dc6530c2d1ba1cc519a8a3a7.zip
Camel is now GObject-based.
Diffstat (limited to 'plugins/tnef-attachments')
-rw-r--r--plugins/tnef-attachments/tnef-plugin.c14
1 files changed, 7 insertions, 7 deletions
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: