diff src/gtkspell.c @ 1794:60b3fd819cce

[gaim-migrate @ 1804] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 02 May 2001 03:59:42 +0000
parents d33bf6548543
children f15d449b3167
line wrap: on
line diff
--- a/src/gtkspell.c	Wed May 02 00:10:38 2001 +0000
+++ b/src/gtkspell.c	Wed May 02 03:59:42 2001 +0000
@@ -58,6 +58,7 @@
 	return (spell_pid > 0);
 }
 
+/*
 static void error_print(const char *fmt, ...) {
 	va_list ap;
 	va_start(ap, fmt);
@@ -65,6 +66,8 @@
 	vfprintf(stderr, fmt, ap);
 	va_end(ap);
 }
+*/
+#define error_print debug_printf
 
 /* functions to interface with pipe */
 static void writetext(char *text) {
@@ -586,6 +589,7 @@
 	gtk_text_forward_delete(gtktext, gtk_text_get_length(gtktext));
 	gtk_text_insert(gtktext, NULL, NULL, NULL, text, strlen(text));
 	gtk_text_thaw(gtktext);
+	g_free(text);
 
 	gtk_editable_set_position(GTK_EDITABLE(gtktext), origpos);
 	gtk_adjustment_set_value(gtktext->vadj, adj_value);