diff src/protocols/msn/msg.c @ 12250:5e2a365af01b

[gaim-migrate @ 14552] Change some *_unref() reference count guards into g_return_if_fail()/g_return_val_if_fail(). That way we'll get a debug message if they fail, not that they ever should, of course. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 28 Nov 2005 11:47:50 +0000
parents 162dd2f8ad92
children bc30c6270d9f
line wrap: on
line diff
--- a/src/protocols/msn/msg.c	Mon Nov 28 06:55:42 2005 +0000
+++ b/src/protocols/msn/msg.c	Mon Nov 28 11:47:50 2005 +0000
@@ -96,9 +96,7 @@
 msn_message_unref(MsnMessage *msg)
 {
 	g_return_val_if_fail(msg != NULL, NULL);
-
-	if (msg->ref_count <= 0)
-		return NULL;
+	g_return_val_if_fail(msg->ref_count > 0, NULL);
 
 	msg->ref_count--;