From aeea250ab3f69d9771a122d3d8c3e422e216d64c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 May 2015 16:34:52 +0200 Subject: [PATCH] vo_opengl: gl_lcms: minor simplification --- video/out/gl_lcms.c | 3 +-- 1 file changed, 1 insertion(+), 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: ;