diff src/protocols/msn/command.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 a1aa681f1448
children 995aea35b05c
line wrap: on
line diff
--- a/src/protocols/msn/command.c	Mon Nov 28 06:55:42 2005 +0000
+++ b/src/protocols/msn/command.c	Mon Nov 28 11:47:50 2005 +0000
@@ -106,9 +106,7 @@
 msn_command_unref(MsnCommand *cmd)
 {
 	g_return_val_if_fail(cmd != NULL, NULL);
-
-	if (cmd->ref_count <= 0)
-		return NULL;
+	g_return_val_if_fail(cmd->ref_count > 0, NULL);
 
 	cmd->ref_count--;