Merge pull request #505 from numworks/master

Pull epsilon master
This commit is contained in:
Maxime FRIESS
2021-03-15 19:29:12 +01:00
committed by GitHub
17 changed files with 489 additions and 189 deletions

View File

@@ -104,6 +104,12 @@ int main(int argc, char * argv[]) {
FILE * implementation = fopen(implementationPath, "w");
generateImplementationFromImage(implementation, lowerSnakeCaseName, camelCaseName, width, height, colorType, rowPointers);
fclose(implementation);
for (int i=0; i<height; i++) {
free(rowPointers[i]);
}
free(rowPointers);
png_destroy_read_struct(&png, &info, NULL);
fclose(inputFile);
}