--- a/src/scene.c Sun Oct 06 20:49:43 2024 +0200 +++ b/src/scene.c Sat Mar 01 22:55:30 2025 +0100 @@ -178,9 +178,9 @@ asc_sprite_draw(node); } - // destroy render groups + // deallocate render groups cx_for_n(i, ASC_RENDER_GROUP_COUNT) { - cxListDestroy(render_group[i]); + cxListFree(render_group[i]); } } @@ -204,7 +204,7 @@ cx_foreach(AscSceneNode*, child, iter) { if (!iter.exiting) continue; if (child->behaviors != NULL) { - cxListDestroy(child->behaviors); + cxListFree(child->behaviors); } if (child->free_func != NULL) { child->free_func(child);