From 286ecbd71bebb90b45b2e536546c98b0b0c1d336 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 7 Oct 2025 14:24:37 +0000 Subject: [PATCH] oops git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@205 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 6a0eb2d..f7fb2d6 100644 --- a/src/core.c +++ b/src/core.c @@ -160,7 +160,9 @@ static void MwFreeWidget(MwWidget handle) { } void MwDestroyWidget(MwWidget handle) { - arrput(handle->parent->destroy_queue, handle); + if(handle->parent != NULL) { + arrput(handle->parent->destroy_queue, handle); + } } void MwStep(MwWidget handle) {