mirror of https://github.com/mpv-player/mpv
dec_sub: fix memory leak when using subtitle codepage conversion
This commit is contained in:
parent
4c0896de53
commit
398722c5a6
|
@ -250,6 +250,7 @@ static void decode_chain_recode(struct dec_sub *sub, struct sd **sd, int num_sd,
|
|||
if (sub->charset)
|
||||
recoded = recode_packet(packet, sub->charset);
|
||||
decode_chain(sd, num_sd, recoded ? recoded : packet);
|
||||
talloc_free(recoded);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue