commit 28e3bb4fe62e3c6b5cf9dbb7d9fe652e7c00daf3
parent f7d9b333c40a33ba4de6fa7446d1ca4a1179eaa5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 24 Jan 2020 16:03:31 +0100
Release the SVX memory allocator
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/htsky.c b/src/htsky.c
@@ -129,6 +129,8 @@ release_sky(ref_T* ref)
if(sky->htmie) HTMIE(ref_put(sky->htmie));
if(sky->sw_bands) MEM_RM(sky->allocator, sky->sw_bands);
darray_split_release(&sky->svx2htcp_z);
+ ASSERT(MEM_ALLOCATED_SIZE(&sky->svx_allocator) == 0);
+ mem_shutdown_proxy_allocator(&sky->svx_allocator);
MEM_RM(sky->allocator, sky);
}