Memory leak when viewing an incoming invite that contains a profile picture. mxit-2.x.y

Tue, 18 Dec 2012 10:45:03 +0200

author
Andrew Victor <andrew.victor@mxit.com>
date
Tue, 18 Dec 2012 10:45:03 +0200
branch
mxit-2.x.y
changeset 33551
03d90cde7ac7
parent 33549
71ac79e660c4
child 33552
185f05b59f3f

Memory leak when viewing an incoming invite that contains a profile picture.

libpurple/protocols/mxit/profile.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/mxit/profile.c	Tue Dec 18 01:02:51 2012 +0200
+++ b/libpurple/protocols/mxit/profile.c	Tue Dec 18 10:45:03 2012 +0200
@@ -266,6 +266,7 @@
 				char* img_text;
 				img_text = g_strdup_printf( "<img id='%d'>", contact->imgid );
 				purple_notify_user_info_add_pair( info, _( "Photo" ), img_text );
+				g_free( img_text );
 			}
 
 			if ( contact->statusMsg )

mercurial