mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-30 22:05:20 +00:00
Fix: Memory leak in ccx_encoders_smptett.c
This commit is contained in:
parent
acc63cc478
commit
19fec61902
@ -151,8 +151,12 @@ int write_cc_bitmap_as_smptett(struct cc_subtitle *sub, struct encoder_ctx *cont
|
||||
}
|
||||
}
|
||||
}
|
||||
for (i = 0, rect = sub->data; i < sub->nb_data; i++, rect++)
|
||||
{
|
||||
freep(rect->data);
|
||||
freep(rect->data + 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
sub->nb_data = 0;
|
||||
freep(&sub->data);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user