Skip to content

Commit

Permalink
Fix broken build for fuzzer
Browse files Browse the repository at this point in the history
This partially reverts commit a792b67.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Apr 9, 2021
1 parent fe25faa commit f2c6378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittest/fuzzers/fuzzer-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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;
Expand Down

0 comments on commit f2c6378

Please sign in to comment.