changeset 796:4783a3b6859d

[gaim-migrate @ 806] stupid leaks committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 30 Aug 2000 03:49:00 +0000
parents b4071be71eb4
children c13e78ae0f86
files src/conversation.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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