diff libpurple/protocols/msn/notification.c @ 30952:b4285ea42b6e

msn_message_destroy() calls msn_message_unref() if refcount>0. This is always the case. So change all code to call msn_message_unref() directly and change msn_message_destroy to be a private function. This should be more clear.
author Mark Doliner <mark@kingant.net>
date Mon, 22 Nov 2010 07:40:23 +0000
parents 2de522fa534a
children b1022aa66b8a
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Mon Nov 22 07:32:57 2010 +0000
+++ b/libpurple/protocols/msn/notification.c	Mon Nov 22 07:40:23 2010 +0000
@@ -332,7 +332,7 @@
 
 	msn_cmdproc_process_msg(cmdproc, msg);
 
-	msn_message_destroy(msg);
+	msn_message_unref(msg);
 }
 
 static void
@@ -1210,7 +1210,7 @@
 
 					g_free(body_str);
 					g_free(body_enc);
-					msn_message_destroy(msg);
+					msn_message_unref(msg);
 					trans->data = NULL;
 				}
 			}