summaryrefslogtreecommitdiff
path: root/src/book.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/book.c')
-rw-r--r--src/book.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/book.c b/src/book.c
index 036d133..8493c84 100644
--- a/src/book.c
+++ b/src/book.c
@@ -328,11 +328,8 @@ book_save_pdf_with_imagemagick (Book *book, GFile *file, GError **error)
}
/* Move to target URI */
- if (result) {
- GFile *dest;
+ if (result)
result = g_file_move (output_file, file, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, error);
- g_object_unref (dest);
- }
/* Delete page files */
for (link = temporary_files; link; link = link->next) {