pidgin: 7a63be60: mxit/protocols: Use g_realloc, as these ..

darkrain42 at pidgin.im darkrain42 at pidgin.im
Wed May 11 00:44:14 EDT 2011


----------------------------------------------------------------------
Revision: 7a63be60fe2259322b4b4fd263db676484682dde
Parent:   10c09e81a8858ab1237bf18192e891b9cabd59c0
Author:   darkrain42 at pidgin.im
Date:     05/11/11 00:32:30
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7a63be60fe2259322b4b4fd263db676484682dde

Changelog: 

mxit/protocols: Use g_realloc, as these are freed with g_free

Changes against parent 10c09e81a8858ab1237bf18192e891b9cabd59c0

  patched  libpurple/protocols/mxit/protocol.c

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/protocol.c	347af3cd9a06f1cf0397e595d7a31b21701559fb
+++ libpurple/protocols/mxit/protocol.c	16195a144c098b12652cf826e6e51c22fffe1a5b
@@ -2488,7 +2488,7 @@ static struct field* add_field( struct r
 
 	field = g_new0( struct field, 1 );
 
-	r->fields = realloc( r->fields, sizeof( struct field* ) * ( r->fcount + 1 ) );
+	r->fields = g_realloc( r->fields, sizeof( struct field* ) * ( r->fcount + 1 ) );
 	r->fields[r->fcount] = field;
 	r->fcount++;
 
@@ -2508,7 +2508,7 @@ static struct record* add_record( struct
 
 	rec = g_new0( struct record, 1 );
 
-	p->records = realloc( p->records, sizeof( struct record* ) * ( p->rcount + 1 ) );
+	p->records = g_realloc( p->records, sizeof( struct record* ) * ( p->rcount + 1 ) );
 	p->records[p->rcount] = rec;
 	p->rcount++;
 


More information about the Commits mailing list