diff --git a/src/core.c b/src/core.c index db81a2b..b03fb46 100644 --- a/src/core.c +++ b/src/core.c @@ -354,6 +354,7 @@ void MwFreeWidget(MwWidget handle) { for(i = 0; i < arrlen(handle->children); i++) { MwFreeWidget(handle->children[i]); + i--; } arrfree(handle->children);