/pidgin/main: 03d90cde7ac7: Memory leak when viewing an incoming...

Andrew Victor andrew.victor at mxit.com
Tue Dec 18 03:54:33 EST 2012


Changeset: 03d90cde7ac7a11f3702087450782a0e3bfe232a
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2012-12-18 10:45 +0200
Branch:	 mxit-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/03d90cde7ac7

Description:

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

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