From a6b2f13e38e75e7bca00a1e6c1963783f244c0b2 Mon Sep 17 00:00:00 2001 From: Sven Moritz Hallberg Date: Thu, 3 Jun 2010 18:18:46 +0200 Subject: fix a double free --- protocols/nogaim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/nogaim.c b/protocols/nogaim.c index f0c87c20..ebb00418 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -786,8 +786,8 @@ void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, ui ( ts = format_timestamp( irc, sent_at ) ) ) { char *new = g_strconcat( ts, msg, NULL ); - g_free( ts ); - ts = msg = new; + g_free( msg ); + msg = new; } wrapped = word_wrap( msg, 425 ); -- cgit v1.2.3