diff options
-rw-r--r-- | video/out/gl_lcms.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/gl_lcms.c b/video/out/gl_lcms.c index 337664d8b9..b00fcb62a6 100644 --- a/video/out/gl_lcms.c +++ b/video/out/gl_lcms.c @@ -296,13 +296,12 @@ bool gl_lcms_get_lut3d(struct gl_lcms *p, struct lut3d **result_lut3d) cmsDeleteTransform(trafo); if (cache_file) { - char *fname = mp_get_user_path(NULL, p->global, cache_file); + char *fname = mp_get_user_path(tmp, p->global, cache_file); FILE *out = fopen(fname, "wb"); if (out) { fwrite(output, talloc_get_size(output), 1, out); fclose(out); } - talloc_free(fname); } done: ; |