vo_gpu: fix trivial memory leak

Nobody noticed this? Seriously?
This commit is contained in:
Your Name 2021-05-07 14:52:46 +02:00
parent d9008d2aa8
commit c3ebe7eabd
1 changed files with 3 additions and 1 deletions

View File

@ -292,8 +292,10 @@ static int preinit(struct vo *vo)
p->log = vo->log;
struct ra_ctx_opts opts = p->opts;
struct gl_video_opts *gl_opts = mp_get_config_group(p->ctx, vo->global, &gl_video_conf);
struct gl_video_opts *gl_opts =
mp_get_config_group(p->ctx, vo->global, &gl_video_conf);
opts.want_alpha = gl_opts->alpha_mode == 1;
talloc_free(gl_opts);
p->ctx = ra_ctx_create(vo, p->context_type, p->context_name, opts);
if (!p->ctx)