[vlc-devel] [PATCH] hw: vaapi: fix memory leak
Zhao Zhili
quinkblack at foxmail.com
Fri Oct 19 05:55:42 CEST 2018
---
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 d3f8610..a27b102 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);
--
2.9.5
More information about the vlc-devel
mailing list