diff src/protocols/oscar/newsearch.c @ 4871:0b64f386a7b8

[gaim-migrate @ 5201] Nathan is SO the man. He pointed out that oscar was leaking about 500k per IM. No, just kidding. But this should help Gaim leak a little less. It was all Nathan. He is so S-M-R-T. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Mar 2003 07:59:17 +0000
parents 07283934dedd
children
line wrap: on
line diff
--- a/src/protocols/oscar/newsearch.c	Sun Mar 23 07:38:55 2003 +0000
+++ b/src/protocols/oscar/newsearch.c	Sun Mar 23 07:59:17 2003 +0000
@@ -159,6 +159,7 @@
  */
 static int parseresults(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
 {
+	int ret = 0;
 	aim_rxcallback_t userfunc;
 	fu16_t tmp, numresults;
 	struct aim_usersearch *results = NULL;
@@ -194,7 +195,7 @@
 	}
 
 	if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
-		return userfunc(sess, rx, results);
+		ret = userfunc(sess, rx, results);
 
 	/* Now free everything from above */
 	while (results) {
@@ -217,7 +218,7 @@
 		free(del);
 	}
 
-	return 0;
+	return ret;
 }
 
 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)