Compare commits

..

2 Commits

2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,7 @@ if [[ $BUILD_TYPE == "debug" ]]; then
PCKR_OUT="pckr" PCKR_OUT="pckr"
PAKRD_OUT="libpakrd.a" PAKRD_OUT="libpakrd.a"
else else
mkdir dist mkdir -p dist
cp ./include/pak.h dist cp ./include/pak.h dist
CFLAGS+="-O3 " CFLAGS+="-O3 "
PCKR_OUT="dist/pckr" PCKR_OUT="dist/pckr"

View File

@ -229,7 +229,9 @@ void close_asset_pack(asset_pack_t **pack) {
free((*pack)->toc); free((*pack)->toc);
} }
fclose((*pack)->fp); if ((*pack)->fp) {
fclose((*pack)->fp);
}
free(*pack); free(*pack);