vo_opengl: fix a small memory leak when loading user shaders

When gl_shader_cache was destroyed, existing user shader entries leaked
the file path string.
This commit is contained in:
wm4 2015-06-09 22:42:03 +02:00
parent 4a90b15f74
commit 7de2411c47
1 changed files with 1 additions and 1 deletions

View File

@ -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;