src/screen.c: fix memleak in remove_encoding_from_path

This commit is contained in:
Slava Zanko 2009-04-22 15:34:19 +03:00
parent e8f71d0db8
commit b0a0a8f17b

View File

@ -912,6 +912,7 @@ remove_encoding_from_path (const char *path)
g_string_set_size(tmp_conv,0);
}
g_string_set_size(tmp_path,tmp - tmp_path->str);
str_close_conv (converter);
}
g_string_prepend(ret, tmp_path->str);
g_string_free(tmp_path,TRUE);