Commit 90e8bf9f authored by Thomas Guillem's avatar Thomas Guillem

vout/opengl: fix NULL dereference if pl_context_create fails

parent 544b09e6
......@@ -566,7 +566,8 @@ opengl_deinit_program(vout_display_opengl_t *vgl, struct prgm *prgm)
#ifdef HAVE_LIBPLACEBO
FREENULL(tc->uloc.pl_vars);
pl_context_destroy(&tc->pl_ctx);
if (tc->pl_ctx)
pl_context_destroy(&tc->pl_ctx);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment