Mercurial > pidgin
changeset 753:cd62f69d187e
[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 <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 24 Aug 2000 01:05:26 +0000 |
parents | 870fcc64a709 |
children | bcae3ff49680 |
files | src/conversation.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);