# HG changeset patch # User Daniel Atallah # Date 1138425348 0 # Node ID 256abf4dd9129ae4dc53238946c092cbed13b7d2 # Parent 5a9ff0c8593dd2ba8feb0253a502c52bd7a9203a [gaim-migrate @ 15420] Plug a leak. committer: Tailor Script diff -r 5a9ff0c8593d -r 256abf4dd912 src/protocols/simple/simple.c --- a/src/protocols/simple/simple.c Sat Jan 28 01:35:58 2006 +0000 +++ b/src/protocols/simple/simple.c Sat Jan 28 05:15:48 2006 +0000 @@ -384,12 +384,12 @@ } sip->fd = source; - sip->connecting = 0; + sip->connecting = FALSE; write(sip->fd, sip->sendlater, strlen(sip->sendlater)); conn = connection_create(sip, source); conn->inputhandler = gaim_input_add(sip->fd, GAIM_INPUT_READ, simple_input_cb, gc); g_free(sip->sendlater); - sip->sendlater = 0; + sip->sendlater = NULL; } @@ -402,11 +402,12 @@ if(error) { gaim_connection_error(gc, _("Couldn't create socket")); } - sip->connecting = 1; + sip->connecting = TRUE; } if(sip->sendlater) { gchar *old = sip->sendlater; sip->sendlater = g_strdup_printf("%s\r\n%s",old, buf); + g_free(old); } else { sip->sendlater = g_strdup(buf); } diff -r 5a9ff0c8593d -r 256abf4dd912 src/protocols/simple/simple.h --- a/src/protocols/simple/simple.h Sat Jan 28 01:35:58 2006 +0000 +++ b/src/protocols/simple/simple.h Sat Jan 28 05:15:48 2006 +0000 @@ -79,7 +79,7 @@ GHashTable *buddies; guint registertimeout; guint resendtimeout; - int connecting; + gboolean connecting; GaimAccount *account; gchar *sendlater; gchar *regcallid;