summaryrefslogtreecommitdiff
path: root/src/book.c
diff options
context:
space:
mode:
authorAlessio Treglia <quadrispro@ubuntu.com>2010-04-16 10:03:40 +0200
committerAlessio Treglia <quadrispro@ubuntu.com>2010-04-16 10:03:40 +0200
commita10c17b3f17ebe3b96f92d57aa24f21c6cea01e8 (patch)
treeeb1bf3b2ce0c87e2c7adf9f486b37ba5e8d70325 /src/book.c
parentada687210b925332ef4ed553b5eaf1a150a7e0da (diff)
parent279b3fab7a8fcee6ed831447b37e1ac5d0397d44 (diff)
Merge commit 'upstream/1.0.2'
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) {