summaryrefslogtreecommitdiff
path: root/source/cbz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-11 19:06:22 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-10-11 19:06:22 +0800
commit28d9c75ed780414a7ae71cab88cc86536444b255 (patch)
tree52d2d43bc498b30b003bd658d2781d49faf32d15 /source/cbz
parent34b5ec0c2ae66511adb65d246287132f11abb3d4 (diff)
downloadmupdf-28d9c75ed780414a7ae71cab88cc86536444b255.tar.xz
Free document in fz_drop_document(), not in subclassing documents.
Diffstat (limited to 'source/cbz')
-rw-r--r--source/cbz/mucbz.c1
-rw-r--r--source/cbz/muimg.c1
-rw-r--r--source/cbz/mutiff.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c
index 8e281c64..23143fac 100644
--- a/source/cbz/mucbz.c
+++ b/source/cbz/mucbz.c
@@ -105,7 +105,6 @@ cbz_drop_document(fz_context *ctx, cbz_document *doc)
{
fz_drop_archive(ctx, doc->arch);
fz_free(ctx, (char **)doc->page);
- fz_free(ctx, doc);
}
static int
diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c
index 1f181cab..a02731c6 100644
--- a/source/cbz/muimg.c
+++ b/source/cbz/muimg.c
@@ -21,7 +21,6 @@ static void
img_drop_document(fz_context *ctx, img_document *doc)
{
fz_drop_image(ctx, doc->image);
- fz_free(ctx, doc);
}
static int
diff --git a/source/cbz/mutiff.c b/source/cbz/mutiff.c
index 7423c3c1..fb88e11b 100644
--- a/source/cbz/mutiff.c
+++ b/source/cbz/mutiff.c
@@ -111,7 +111,6 @@ static void
tiff_drop_document(fz_context *ctx, tiff_document *doc)
{
fz_drop_buffer(ctx, doc->buffer);
- fz_free(ctx, doc);
}
static tiff_document *