MXit: Fix small memory leak when viewing the profile of an incoming invite. release-2.x.y

Tue, 29 Jan 2013 22:54:22 +0200

author
Andrew Victor <andrew.victor@mxit.com>
date
Tue, 29 Jan 2013 22:54:22 +0200
branch
release-2.x.y
changeset 33712
0a6e1199c50f
parent 33709
84fb3f1d401b
child 33713
3c21af28962e

MXit: Fix small memory leak when viewing the profile of an incoming invite.

libpurple/protocols/mxit/profile.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/mxit/profile.c	Tue Jan 29 14:45:07 2013 +0100
+++ b/libpurple/protocols/mxit/profile.c	Tue Jan 29 22:54:22 2013 +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