1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 00:42:57 +00:00

vf: Free MP_IMGTYPE_NUMBERED buffers too

When this newest type of buffers was added, needed code to free
objects of this type when closing the filter had been omitted.
This commit is contained in:
Uoti Urpala 2009-09-18 06:16:22 +03:00
parent b05d9ead6d
commit 82bbf1a1ab

View File

@ -749,6 +749,8 @@ void vf_uninit_filter(vf_instance_t* vf){
free_mp_image(vf->imgctx.static_images[1]);
free_mp_image(vf->imgctx.temp_images[0]);
free_mp_image(vf->imgctx.export_images[0]);
for (int i = 0; i < NUM_NUMBERED_MPI; i++)
free_mp_image(vf->imgctx.numbered_images[i]);
free(vf);
}