/pidgin/main: 0a6e1199c50f: MXit: Fix small memory leak when vie...

Andrew Victor andrew.victor at mxit.com
Tue Jan 29 15:54:41 EST 2013


Changeset: 0a6e1199c50f639bcf30365517fb8c54bcf398b2
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2013-01-29 22:54 +0200
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/0a6e1199c50f

Description:

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

diffstat:

 libpurple/protocols/mxit/profile.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/libpurple/protocols/mxit/profile.c b/libpurple/protocols/mxit/profile.c
--- a/libpurple/protocols/mxit/profile.c
+++ b/libpurple/protocols/mxit/profile.c
@@ -266,6 +266,7 @@ void mxit_show_profile( struct MXitSessi
 				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 )



More information about the Commits mailing list