From debd40014f38065b6a72fbadefd60a0cadd2c89d Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 9 May 2000 04:57:31 +0000 Subject: one more refcounting fix I missed before. * providers/mbox/camel-mbox-folder.c (mbox_get_message_by_uid): one more refcounting fix I missed before. svn path=/trunk/; revision=2930 --- camel/ChangeLog | 6 +++++- camel/providers/mbox/camel-mbox-folder.c | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 37f3dbbce3..dffbc5ffd5 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-05-09 Dan Winship + + * providers/mbox/camel-mbox-folder.c (mbox_get_message_by_uid): + one more refcounting fix I missed before. + 2000-05-08 Jeffrey Stedfast * camel-smtp-transport.c: no longer frees memory it shouldn't, @@ -5,7 +10,6 @@ (perhaps it should use a different CamelException variable than is passed to the camel smtp module?) - 2000-05-08 Dan Winship * camel-stream.c (camel_stream_read, camel_stream_write, diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index 5cc4cb3efd..c38951a74d 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -872,6 +872,7 @@ mbox_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException * /* we use a parser to verify the message is correct, and in the correct position */ parser = camel_mime_parser_new(); camel_mime_parser_init_with_stream(parser, message_stream); + gtk_object_unref((GtkObject *)message_stream); camel_mime_parser_scan_from(parser, TRUE); camel_mime_parser_seek(parser, info->frompos, SEEK_SET); @@ -915,8 +916,6 @@ fail: } if (parser) gtk_object_unref((GtkObject *)parser); - if (message_stream) - gtk_object_unref((GtkObject *)message_stream); if (message) gtk_object_unref((GtkObject *)message); -- cgit