Fix: Memory leak in ccx_encoders_smptett.c

This commit is contained in:
Carlos Fernandez 2017-01-10 12:16:05 -08:00
parent acc63cc478
commit 19fec61902

View File

@ -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;