From 3e0e63fbb7f7943769dfc6e13b55f0c038d10a16 Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:30:10 +0000 Subject: [PATCH] fixes --- ww/generic_pool.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ww/generic_pool.c b/ww/generic_pool.c index e86f8bb..cb70444 100644 --- a/ww/generic_pool.c +++ b/ww/generic_pool.c @@ -25,7 +25,10 @@ static void poolDestroyItemHandle(struct master_pool_s *pool, master_pool_item_t { gpool->destroy_item_handle(gpool, item); } - globalFree(item); + else + { + globalFree(item); + } } void poolReCharge(generic_pool_t *pool) @@ -78,7 +81,7 @@ static generic_pool_t *allocateGenericPool(struct master_pool_s *mp, unsigned in .mp = mp, .create_item_handle = create_h, .destroy_item_handle = destroy_h}; - installMasterPoolAllocCallbacks(pool_ptr->mp, pool_ptr,poolCreateItemHandle, poolDestroyItemHandle); + installMasterPoolAllocCallbacks(pool_ptr->mp, pool_ptr, poolCreateItemHandle, poolDestroyItemHandle); // poolFirstCharge(pool_ptr); return pool_ptr; }