diff options
-rw-r--r-- | libass/ass.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libass/ass.c b/libass/ass.c index ad37606..f6fabdc 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -968,6 +968,11 @@ static char *sub_recode(ASS_Library *library, char *data, size_t size, ass_msg(library, MSGL_V, "Opened iconv descriptor"); } else ass_msg(library, MSGL_ERR, "Error opening iconv descriptor"); +#ifdef CONFIG_ENCA + if (cp_tmp != codepage) { + free((void*)cp_tmp); + } +#endif } { |