# HG changeset patch # User Eric Warmenhoven # Date 967079126 0 # Node ID cd62f69d187e23abedaaa2d201def9f7edc44faa # Parent 870fcc64a7090eb77f9e8972f01cf1128e137092 [gaim-migrate @ 763] Eric the Plumber plugs leaks. What some people don't realize is that Eric is the one who makes the leaks. Eric has a very good business. committer: Tailor Script diff -r 870fcc64a709 -r cd62f69d187e src/conversation.c --- a/src/conversation.c Wed Aug 23 23:52:12 2000 +0000 +++ b/src/conversation.c Thu Aug 24 01:05:26 2000 +0000 @@ -531,9 +531,10 @@ buf = g_malloc(limit); buf2 = gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1); - if (!strlen(buf2)) return; g_snprintf(buf, limit, "%s", buf2); + g_free(buf2); gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1); + if (!strlen(buf)) return; if (general_options & OPT_GEN_SEND_LINKS) linkify_text(buf);