mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
vo_gpu: fix trivial memory leak
Nobody noticed this? Seriously?
This commit is contained in:
parent
d9008d2aa8
commit
c3ebe7eabd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user