# HG changeset patch # User Eric Warmenhoven # Date 967607340 0 # Node ID 4783a3b6859d75c15dee16357fafe2efc1387300 # Parent b4071be71eb4c62970cedad24afe41089cfe25eb [gaim-migrate @ 806] stupid leaks committer: Tailor Script diff -r b4071be71eb4 -r 4783a3b6859d src/conversation.c --- a/src/conversation.c Tue Aug 29 23:40:26 2000 +0000 +++ b/src/conversation.c Wed Aug 30 03:49:00 2000 +0000 @@ -535,7 +535,10 @@ g_snprintf(buf, limit, "%s", buf2); g_free(buf2); gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1); - if (!strlen(buf)) return; + if (!strlen(buf)) { + g_free(buf); + return; + } if (general_options & OPT_GEN_SEND_LINKS) linkify_text(buf); @@ -592,6 +595,7 @@ plugin_event(evnt, c->name, &buffy, 0); if (!buffy) { g_free(buf2); + g_free(buf); return; } g_snprintf(buf, limit, "%s", buffy); @@ -629,6 +633,8 @@ } gtk_widget_grab_focus(c->entry); + g_free(buf2); + g_free(buf); } static int