gmime r1394 - in branches/gmime-2-2: . gmime



Author: fejj
Date: Thu Aug  7 23:50:52 2008
New Revision: 1394
URL: http://svn.gnome.org/viewvc/gmime?rev=1394&view=rev

Log:
2008-08-07  Jeffrey Stedfast  <fejj novell com>

	* gmime/gmime-message-part.c (g_mime_message_part_get_message):
	Only ref the message if it is non-NULL. Thanks to Peter Bloomfield
	for this fix.



Modified:
   branches/gmime-2-2/ChangeLog
   branches/gmime-2-2/gmime/gmime-message-part.c

Modified: branches/gmime-2-2/gmime/gmime-message-part.c
==============================================================================
--- branches/gmime-2-2/gmime/gmime-message-part.c	(original)
+++ branches/gmime-2-2/gmime/gmime-message-part.c	Thu Aug  7 23:50:52 2008
@@ -27,7 +27,7 @@
 
 #include "gmime-message-part.h"
 
-#define d(x) x
+#define d(x)
 
 
 /**
@@ -303,7 +303,8 @@
 {
 	g_return_val_if_fail (GMIME_IS_MESSAGE_PART (part), NULL);
 	
-	g_object_ref (part->message);
+	if (part->message)
+		g_object_ref (part->message);
 	
 	return part->message;
 }



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