Fix broken build for fuzzer

This partially reverts commit a792b67983.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-04-09 08:05:04 +02:00
parent fe25faae8b
commit f2c6378b5a

View File

@ -68,7 +68,7 @@ extern "C" int LLVMFuzzerInitialize(int * /*pArgc*/, char ***pArgv) {
}
static PIX *createPix(BitReader &BR, const size_t width, const size_t height) {
Image pix = pixCreate(width, height, 1);
Pix *pix = pixCreate(width, height, 1);
if (pix == nullptr) {
printf("pix creation failed\n");
@ -93,7 +93,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
char *outText = api->GetUTF8Text();
pix.destroy();
pixDestroy(&pix);
delete[] outText;
return 0;