changeset 4872:e6dbac19a8d5

[gaim-migrate @ 5202] really fix the memleak grabbing buddy icons from the server committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 23 Mar 2003 07:59:44 +0000
parents 0b64f386a7b8
children cb5bb2972a4b
files src/protocols/oscar/icon.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/icon.c	Sun Mar 23 07:59:17 2003 +0000
+++ b/src/protocols/oscar/icon.c	Sun Mar 23 07:59:44 2003 +0000
@@ -59,6 +59,7 @@
 	aim_rxcallback_t userfunc;
 	int i;
 	char *sn;
+	int ret = 0;
 	fu16_t flags, iconlen;
 	fu8_t number, iconcsumlen, *iconcsum, *icon;
 
@@ -71,13 +72,13 @@
 	icon = aimbs_getraw(bs, iconlen);
 
 	if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
-		return userfunc(sess, rx, sn, iconcsum, iconcsumlen, icon, iconlen);
+		ret = userfunc(sess, rx, sn, iconcsum, iconcsumlen, icon, iconlen);
 
 	free(sn);
 	free(iconcsum);
 	free(icon);
 
-	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)