[gaim-migrate @ 763]

Thu, 24 Aug 2000 01:05:26 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Thu, 24 Aug 2000 01:05:26 +0000
changeset 753
3a7518fde9de
parent 752
900be3d75416
child 754
84b82b12dba9

[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.

src/conversation.c file | annotate | diff | comparison | revisions
--- 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);

mercurial