Gracefully exit.

fix-windows-compile
Wesley Castro 4 years ago
parent 1899debbd0
commit 9d84d76855
  1. 3
      tcb-convert.c

@ -152,6 +152,9 @@ int main(int argc, char *argv[])
if(!tcbFile)
{
printf("Error opening %s.\n", tcbPath);
free(tcbData);
free(imageData.rgba);
return EXIT_FAILURE;
}
fwrite(tcbData, 1, tcbLength, tcbFile);

Loading…
Cancel
Save