Skip to content
Snippets Groups Projects
Commit 4427da15 authored by Romain Vimont's avatar Romain Vimont Committed by Hugo Beauzée-Luyssen
Browse files

opengl: fix sampler memory leak

If libplacebo is enabled, a pl_shader was allocated but never freed.
parent 4cbe5862
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment