[vlc-commits] hw: vaapi: fix memory leak on error path
Zhao Zhili
git at videolan.org
Fri Oct 19 08:50:41 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Oct 19 11:55:42 2018 +0800| [5142340de7897be848144bcd4626c160c33c0101] | committer: Thomas Guillem
hw: vaapi: fix memory leak on error path
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5142340de7897be848144bcd4626c160c33c0101
---
modules/hw/vaapi/filters.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/hw/vaapi/filters.c b/modules/hw/vaapi/filters.c
index d3f8610fcc..a27b102376 100644
--- a/modules/hw/vaapi/filters.c
+++ b/modules/hw/vaapi/filters.c
@@ -453,6 +453,8 @@ error:
if (filter_sys->va.conf != VA_INVALID_ID)
vlc_vaapi_DestroyConfig(VLC_OBJECT(filter),
filter_sys->va.dpy, filter_sys->va.conf);
+ if (filter_sys->dest_pics)
+ picture_pool_Release(filter_sys->dest_pics);
if (filter_sys->va.inst)
vlc_vaapi_FilterReleaseInstance(filter, filter_sys->va.inst);
free(filter_sys);
More information about the vlc-commits
mailing list