From efe7d1b534652c35a92f8bd0d7b2955ec776a217 Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Thu, 28 Nov 2019 13:10:48 +0300 Subject: [PATCH] fix page double release in pdf_include_page --- dpx/src/dpx_epdf.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/dpx/src/dpx_epdf.rs b/dpx/src/dpx_epdf.rs index feaf9e66e..fc38068cf 100644 --- a/dpx/src/dpx_epdf.rs +++ b/dpx/src/dpx_epdf.rs @@ -163,7 +163,6 @@ pub unsafe fn pdf_include_page( || pdf_concat_stream(&mut content_new, (*content_seg).as_stream_mut()) < 0 { pdf_release_obj(content_seg); - pdf_release_obj(page); error(); return -1; } @@ -171,7 +170,6 @@ pub unsafe fn pdf_include_page( } content_new.into_obj() } else { - pdf_release_obj(page); error(); return -1; };