diff --git a/video/out/gl_utils.c b/video/out/gl_utils.c index 0401a0830e..d49ec7f6eb 100644 --- a/video/out/gl_utils.c +++ b/video/out/gl_utils.c @@ -597,7 +597,7 @@ const char *gl_sc_loadfile(struct gl_shader_cache *sc, const char *path) if (s.len) { struct sc_file *new = &sc->files[sc->num_files++]; *new = (struct sc_file) { - .path = talloc_strdup(NULL, path), + .path = talloc_strdup(sc, path), .body = s.start }; return new->body;