Skip to content

Commit

Permalink
Merge pull request #227 from burrbull/fix_null
Browse files Browse the repository at this point in the history
fix page double release in pdf_include_page
  • Loading branch information
burrbull authored Nov 28, 2019
2 parents ffe59ca + efe7d1b commit 8ef0d2f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dpx/src/dpx_epdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,13 @@ 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;
}
pdf_release_obj(content_seg);
}
content_new.into_obj()
} else {
pdf_release_obj(page);
error();
return -1;
};
Expand Down

0 comments on commit 8ef0d2f

Please sign in to comment.