summaryrefslogtreecommitdiff
path: root/logview/logview-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'logview/logview-window.c')
-rw-r--r--logview/logview-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/logview/logview-window.c b/logview/logview-window.c
index 3634e1d2..d0728f92 100644
--- a/logview/logview-window.c
+++ b/logview/logview-window.c
@@ -1013,7 +1013,8 @@ read_new_lines_cb (LogviewLog *log,
if (!g_utf8_validate (lines[i], len, NULL)) {
converted = g_locale_to_utf8 (lines[i], (gssize) len, NULL, &len, NULL);
- gtk_text_buffer_insert (buffer, &iter, lines[i], len);
+ gtk_text_buffer_insert (buffer, &iter, converted, len);
+ g_free (converted);
} else {
gtk_text_buffer_insert (buffer, &iter, lines[i], strlen (lines[i]));
}