summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-02 16:34:52 +0200
committerwm4 <wm4@nowhere>2015-05-02 16:34:52 +0200
commitaeea250ab3f69d9771a122d3d8c3e422e216d64c (patch)
tree9078484ba7a3d932c67338a97dfa5802dbf043e8 /video/out
parentff1b5432e777c83af9ac55cc72ecd7a7344b9476 (diff)
downloadmpv-aeea250ab3f69d9771a122d3d8c3e422e216d64c.tar.bz2
mpv-aeea250ab3f69d9771a122d3d8c3e422e216d64c.tar.xz
vo_opengl: gl_lcms: minor simplification
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gl_lcms.c3
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: ;