gmime r1501 - in trunk: . examples
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1501 - in trunk: . examples
- Date: Sat, 10 Jan 2009 01:09:32 +0000 (UTC)
Author: fejj
Date: Sat Jan 10 01:09:32 2009
New Revision: 1501
URL: http://svn.gnome.org/viewvc/gmime?rev=1501&view=rev
Log:
2009-01-09 Jeffrey Stedfast <fejj novell com>
* examples/imap-example.c (write_part): Don't unref the stream we
get from g_mime_data_wrapper_get_stream().
(reconstruct_part_content): Fixed error-checking.
Modified:
trunk/ChangeLog
trunk/examples/imap-example.c
Modified: trunk/examples/imap-example.c
==============================================================================
--- trunk/examples/imap-example.c (original)
+++ trunk/examples/imap-example.c Sat Jan 10 01:09:32 2009
@@ -321,9 +321,7 @@
ostream = g_mime_stream_file_new (fp);
istream = g_mime_data_wrapper_get_stream (GMIME_PART (part)->content);
-
g_mime_stream_write_to_stream (istream, ostream);
- g_object_unref (istream);
g_object_unref (ostream);
}
}
@@ -735,7 +733,7 @@
int fd;
filename = g_strdup_printf ("%s/%s.TEXT", uid, spec);
- if ((fd = open (filename, O_RDONLY))) {
+ if ((fd = open (filename, O_RDONLY)) == -1) {
g_free (filename);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]