[Inliner] Use png_destroy_read_struct

This commit is contained in:
Joachim Le Fournis
2021-03-01 15:15:24 +01:00
committed by EmilieNumworks
parent 4718ff8016
commit d7f7bbe862

View File

@@ -109,8 +109,7 @@ int main(int argc, char * argv[]) {
free(rowPointers[i]);
}
free(rowPointers);
free(png);
free(info);
png_destroy_read_struct(&png, &info, NULL);
fclose(inputFile);
}