diff src/ft.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 de798f2f4bf1
children 5e14039d0415
line wrap: on
line diff
--- a/src/ft.c	Mon Nov 28 06:55:42 2005 +0000
+++ b/src/ft.c	Mon Nov 28 11:47:50 2005 +0000
@@ -98,6 +98,7 @@
 gaim_xfer_unref(GaimXfer *xfer)
 {
 	g_return_if_fail(xfer != NULL);
+	g_return_if_fail(xfer->ref > 0);
 
 	xfer->ref--;