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

pdfsig: fix use after free

It can happen that destroying the pdf tries to log, which needs
globalParams, so destroy globalParams last

Fixes issue #733
parent 33befc25
......@@ -276,9 +276,9 @@ int main(int argc, char *argv[])
exitCode = 0;
end:
delete globalParams;
delete fileName;
delete doc;
delete globalParams;
return exitCode;
}
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