| 1117 | } |
| 1118 | |
| 1119 | static void avifDecoderDataDestroy(avifDecoderData * data) |
| 1120 | { |
| 1121 | if (data->meta) { |
| 1122 | avifMetaDestroy(data->meta); |
| 1123 | } |
| 1124 | for (uint32_t i = 0; i < data->tracks.count; ++i) { |
| 1125 | avifTrack * track = &data->tracks.track[i]; |
| 1126 | if (track->sampleTable) { |
| 1127 | avifSampleTableDestroy(track->sampleTable); |
| 1128 | } |
| 1129 | if (track->meta) { |
| 1130 | avifMetaDestroy(track->meta); |
| 1131 | } |
| 1132 | } |
| 1133 | avifArrayDestroy(&data->tracks); |
| 1134 | avifDecoderDataClearTiles(data); |
| 1135 | avifArrayDestroy(&data->tiles); |
| 1136 | avifArrayDestroy(&data->compatibleBrands); |
| 1137 | avifFree(data); |
| 1138 | } |
| 1139 | |
| 1140 | // This returns the max extent that has to be read in order to decode this item. If |
| 1141 | // the item is stored in an idat, the data has already been read during Parse() and |
no test coverage detected