diff options
author | wm4 <wm4@nowhere> | 2015-05-02 16:34:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-02 16:34:52 +0200 |
commit | aeea250ab3f69d9771a122d3d8c3e422e216d64c (patch) | |
tree | 9078484ba7a3d932c67338a97dfa5802dbf043e8 /video | |
parent | ff1b5432e777c83af9ac55cc72ecd7a7344b9476 (diff) |
vo_opengl: gl_lcms: minor simplification
Diffstat (limited to 'video')
-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: ; |