summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-07 14:52:46 +0200
committerYour Name <you@example.com>2021-05-07 15:01:15 +0200
commitc3ebe7eabdbd41d496169bdcd98efff9d3f0bf87 (patch)
tree983a4d68fd3f93019dc1a3173b033f798089d50a
parentd9008d2aa84467064c3d76407f5f6a5b86e76520 (diff)
downloadmpv-c3ebe7eabdbd41d496169bdcd98efff9d3f0bf87.tar.bz2
mpv-c3ebe7eabdbd41d496169bdcd98efff9d3f0bf87.tar.xz
vo_gpu: fix trivial memory leak
Nobody noticed this? Seriously?
-rw-r--r--video/out/vo_gpu.c4
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)