mirror of https://github.com/mpv-player/mpv
vo_gpu: fix memleak in spirv.c
This commit is contained in:
parent
a4e951e80c
commit
e569050fe4
|
@ -60,7 +60,7 @@ bool spirv_compiler_init(struct ra_ctx *ctx)
|
||||||
if (!compilers[i])
|
if (!compilers[i])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ctx->spirv = talloc_zero(NULL, struct spirv_compiler);
|
ctx->spirv = talloc_zero(ctx, struct spirv_compiler);
|
||||||
ctx->spirv->log = ctx->log,
|
ctx->spirv->log = ctx->log,
|
||||||
ctx->spirv->fns = compilers[i];
|
ctx->spirv->fns = compilers[i];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue