Commit f1035912 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix memory leak on error condition

parent 72e0a3a0
......@@ -343,6 +343,7 @@ GBool Catalog::cachePageTree(int page)
if (lastCachedPage >= numPages) {
error(errSyntaxError, -1, "Page count in top-level pages object is incorrect");
delete p;
return gFalse;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment