diff options
Diffstat (limited to 'video/out/vo_gpu.c')
-rw-r--r-- | video/out/vo_gpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index fe17e344ec..38b29c3ceb 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -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) |