vo_gpu: fix trivial memory leak

Nobody noticed this? Seriously?
This commit is contained in:
Your Name
2021-05-07 15:01:15 +02:00
parent d9008d2aa8
commit c3ebe7eabd
+3 -1
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)