diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2015-01-27 17:06:13 -0800 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2015-01-27 17:06:13 -0800 |
commit | 15f13d88d20917138d6e6cb38df6341f6b676cf6 (patch) | |
tree | b4acdcb7dd993aa9e118117efe5009ac3a4a61b2 /platform/windows/mupdfnet | |
parent | 7f231b336da00ab5f6fbf0849d591545632856e1 (diff) | |
download | mupdf-15f13d88d20917138d6e6cb38df6341f6b676cf6.tar.xz |
Fix mismatching allocation and deallocation issues.
The form of delete should match the form that is used in the new command.
Otherwise the behavior is undefined.
Diffstat (limited to 'platform/windows/mupdfnet')
-rw-r--r-- | platform/windows/mupdfnet/mupdfnet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/mupdfnet/mupdfnet.cpp b/platform/windows/mupdfnet/mupdfnet.cpp index 854d40c5..a778537a 100644 --- a/platform/windows/mupdfnet/mupdfnet.cpp +++ b/platform/windows/mupdfnet/mupdfnet.cpp @@ -452,13 +452,13 @@ SYMBOL_DECLSPEC int __stdcall mExtractPages(PCWSTR infile, PCWSTR outfile, fz_optind = 1; result = pdfclean_main(argc, argv); - delete(num); + delete[] num; delete(infilechar); delete(outfilechar); if (has_password) delete(passchar); if (num_pages > 0) - delete(pagenums); + delete[] pagenums; delete(argv); return result; } |