[gmime/gmime-2-4] fixed a silly mistake



commit 6647fd31a5ca38c54aeb46f29d990e4130c2091d
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Apr 25 19:53:48 2009 -0400

    fixed a silly mistake
    
    2009-04-25  Jeffrey Stedfast  <fejj novell com>
    
    	* gmime/gmime-object.c (g_mime_object_set_disposition): Unref the
    	disposition after setting it on the GMimeObject, don't ref it
    	again. Oops.
---
 ChangeLog            |    4 ++++
 gmime/gmime-object.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 09628e9..9758255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-04-25  Jeffrey Stedfast  <fejj novell com>
 
+	* gmime/gmime-object.c (g_mime_object_set_disposition): Unref the
+	disposition after setting it on the GMimeObject, don't ref it
+	again. Oops.
+
 	* gmime/gmime-message.c (unblock_changed_event): Oops, this needs
 	to /unblock/ the event handler.
 
diff --git a/gmime/gmime-object.c b/gmime/gmime-object.c
index 6b32093..e46a474 100644
--- a/gmime/gmime-object.c
+++ b/gmime/gmime-object.c
@@ -609,7 +609,7 @@ g_mime_object_set_disposition (GMimeObject *object, const char *disposition)
 	disp = g_mime_content_disposition_new ();
 	g_mime_content_disposition_set_disposition (disp, disposition);
 	g_mime_object_set_content_disposition (object, disp);
-	g_object_ref (disp);
+	g_object_unref (disp);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]