diff src/logwindow.c @ 767:e73d30e0c896

Make utf8_validate_or_convert() to always allocate a new string.
author zas_
date Fri, 30 May 2008 08:36:23 +0000
parents a7289f9e8d29
children 9962b24b6b43
line wrap: on
line diff
--- a/src/logwindow.c	Fri May 30 07:20:25 2008 +0000
+++ b/src/logwindow.c	Fri May 30 08:36:23 2008 +0000
@@ -198,8 +198,9 @@
 
 	if (!text || !*text) return;
 
-	str_utf8 = utf8_validate_or_convert((gchar *)text);
+	str_utf8 = utf8_validate_or_convert(text);
 	gtk_text_buffer_insert_with_tags_by_name(buffer, iter, str_utf8, -1, tag, NULL);
+	g_free(str_utf8);
 }