diff --git a/src/core.c b/src/core.c index 9f18d72..f879661 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);