diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-17 10:02:26 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-17 10:02:26 +0000 |
commit | 959bdb992afe0d2964381255da7f7eab6aa9de61 (patch) | |
tree | 37d5b8594be5d15c91faa9e34525b6938e938650 /src/sourcewindow.c | |
parent | 6127a936645cf2d2d4fcdfd1461f4d1f7268a3b7 (diff) |
made every code conversion API allocate new memory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@180 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/sourcewindow.c')
-rw-r--r-- | src/sourcewindow.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sourcewindow.c b/src/sourcewindow.c index 986184ab..1b80687e 100644 --- a/src/sourcewindow.c +++ b/src/sourcewindow.c @@ -153,12 +153,10 @@ void source_window_append(SourceWindow *sourcewin, const gchar *str) buffer = gtk_text_view_get_buffer(text); - len = strlen(str) + 1; - Xalloca(out, len, return); - conv_utf8todisp(out, len, str); - + out = conv_utf8todisp(str); gtk_text_buffer_get_iter_at_offset(buffer, &iter, -1); gtk_text_buffer_insert(buffer, &iter, out, -1); + g_free(out); } static void source_window_size_alloc_cb(GtkWidget *widget, |