changeset 31592:98945afd4c44

mxit/protocols: Use g_realloc, as these are freed with g_free
author Paul Aurich <paul@darkrain42.org>
date Wed, 11 May 2011 04:32:30 +0000
parents 9449f70762e7
children 8ae190ff23c7
files libpurple/protocols/mxit/protocol.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c	Wed May 11 04:29:56 2011 +0000
+++ b/libpurple/protocols/mxit/protocol.c	Wed May 11 04:32:30 2011 +0000
@@ -2488,7 +2488,7 @@
 
 	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 @@
 
 	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++;