summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/output.c6
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;
}