Read media tags.

This commit is contained in:
2019-03-17 23:01:54 +00:00
parent 40ae5d6c88
commit 3d070e8fc2
2 changed files with 70 additions and 1 deletions

View File

@@ -64,6 +64,24 @@ int close(void *context)
free(ctx->sectorSubchannel);
free(ctx->mode2Subheaders);
if(ctx->mediaTagsTail != NULL)
{
dataLinkedList *mediaTag = ctx->mediaTagsTail;
while(mediaTag->previous != NULL)
{
free(mediaTag->data);
mediaTag = mediaTag->previous;
free(mediaTag->next);
}
}
if(ctx->mediaTagsHead != NULL)
{
free(ctx->mediaTagsHead->data);
free(ctx->mediaTagsHead);
}
free(context);
return 0;