[vlc-commits] [Git][videolan/vlc][master] opengl: fix sampler memory leak

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Fri Dec 10 13:43:22 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
4427da15 by Romain Vimont at 2021-12-10T13:06:03+00:00
opengl: fix sampler memory leak

If libplacebo is enabled, a pl_shader was allocated but never freed.

- - - - -


1 changed file:

- modules/video_output/opengl/sampler.c


Changes:

=====================================
modules/video_output/opengl/sampler.c
=====================================
@@ -888,6 +888,8 @@ vlc_gl_sampler_Delete(struct vlc_gl_sampler *sampler)
 
 #ifdef HAVE_LIBPLACEBO
     FREENULL(priv->uloc.pl_vars);
+    if (priv->pl_sh)
+        pl_shader_free(&priv->pl_sh);
     if (priv->pl_ctx)
         pl_context_destroy(&priv->pl_ctx);
 #endif



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4427da15b5e14775ba72778f5f39f3af4ea0df5b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4427da15b5e14775ba72778f5f39f3af4ea0df5b
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list