Mercurial > geeqie
diff src/pan-view.c @ 1053:77ca9a5d42be
fixed charset of exiv2 strings in non-utf8 locales
author | nadvornik |
---|---|
date | Sat, 04 Oct 2008 20:28:31 +0000 |
parents | 1a4b18c58556 |
children | 1646720364cf |
line wrap: on
line diff
--- a/src/pan-view.c Wed Oct 01 20:57:56 2008 +0000 +++ b/src/pan-view.c Sat Oct 04 20:28:31 2008 +0000 @@ -1446,6 +1446,7 @@ for (i = 0; ExifUIList[i].key; i++) { gchar *label; + gchar *desc; gchar *text; gchar *utf8_text; @@ -1458,7 +1459,9 @@ continue; } - label = g_strdup_printf("%s:", exif_get_description_by_key(ExifUIList[i].key)); + desc = exif_get_description_by_key(ExifUIList[i].key); + label = g_strdup_printf("%s:", desc); + g_free(desc); utf8_text = utf8_validate_or_convert(text); g_free(text); pan_text_alignment_add(ta, label, utf8_text);