[vlc-commits] [Git][videolan/vlc][3.0.x] hw: vaapi: fix memory leak on error path
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Nov 15 19:32:43 UTC 2026
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
631997c2 by Zhao Zhili at 2026-11-15T20:15:05+01:00
hw: vaapi: fix memory leak on error path
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit 5142340de7897be848144bcd4626c160c33c0101)
- - - - -
1 changed file:
- modules/hw/vaapi/filters.c
Changes:
=====================================
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);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/631997c20cdd60fdd7a0d0d816eb546b19bca383
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/631997c20cdd60fdd7a0d0d816eb546b19bca383
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list