MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifArrayDestroy

Function avifArrayDestroy

src/utils.c:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void avifArrayDestroy(void * arrayStruct)
141{
142 avifArrayInternal * arr = (avifArrayInternal *)arrayStruct;
143 if (arr->ptr) {
144 avifFree(arr->ptr);
145 arr->ptr = NULL;
146 }
147 memset(arr, 0, sizeof(avifArrayInternal));
148}
149
150// |a| and |b| hold int32_t values. The int64_t type is used so that we can negate INT32_MIN without
151// overflowing int32_t.

Calls 1

avifFreeFunction · 0.85

Tested by 1

~AvifExpressionMethod · 0.68