diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-06-12 19:34:23 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-06-16 23:46:04 +0800 |
commit | a7cb220f3f979462f1e010cd968ad06fd5294f67 (patch) | |
tree | 3585a63ce63ddf0c1adcf61668bf343ba3384670 /source/fitz | |
parent | 2c81252f355e77c0bb49f79ea32bd64d7ebbde6b (diff) | |
download | mupdf-a7cb220f3f979462f1e010cd968ad06fd5294f67.tar.xz |
Allow fz_output to close the file as requested.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/output.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/fitz/output.c b/source/fitz/output.c index ba2936b3..cbcc4209 100644 --- a/source/fitz/output.c +++ b/source/fitz/output.c @@ -197,14 +197,10 @@ fz_new_output_with_path(fz_context *ctx, const char *filename, int append) fz_throw(ctx, FZ_ERROR_GENERIC, "cannot open file '%s': %s", filename, strerror(errno)); fz_try(ctx) - { out = fz_new_output_with_file_ptr(ctx, file, 1); - } fz_catch(ctx) - { - fclose(file); fz_rethrow(ctx); - } + return out; } |