Read data blocks, except for media tags.

This commit is contained in:
2019-03-17 22:41:04 +00:00
parent 81740d7e2d
commit 40ae5d6c88
3 changed files with 188 additions and 3 deletions

View File

@@ -53,9 +53,17 @@ int close(void *context)
return -1;
}
// This may do nothing if imageStream is NULL, but as the behaviour is undefined, better sure than sorry
if(ctx->imageStream != NULL)
fclose(ctx->imageStream);
free(ctx->sectorPrefix);
free(ctx->sectorPrefixCorrected);
free(ctx->sectorSuffix);
free(ctx->sectorSuffixCorrected);
free(ctx->sectorSubchannel);
free(ctx->mode2Subheaders);
free(context);
return 0;