diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-09-18 06:16:22 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-09-18 07:36:32 +0300 |
commit | 82bbf1a1ab1affc675e9b69b93e33accfa2ed0b8 (patch) | |
tree | af599240a092294781338b2b956729b8e5636953 /libmpcodecs | |
parent | b05d9ead6db10abdc299c6d1aa6bafb2c2790d7c (diff) |
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.
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index d387fadc49..6c935a219b 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -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); } |