diff src/roomlist.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 5151c6788f3d
children 8bda65b88e49
line wrap: on
line diff
--- a/src/roomlist.c	Mon Nov 28 06:55:42 2005 +0000
+++ b/src/roomlist.c	Mon Nov 28 11:47:50 2005 +0000
@@ -124,6 +124,7 @@
 void gaim_roomlist_unref(GaimRoomlist *list)
 {
 	g_return_if_fail(list != NULL);
+	g_return_if_fail(list->ref > 0);
 
 	list->ref--;