aboutsummaryrefslogtreecommitdiff
path: root/nuklear.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuklear.h')
-rw-r--r--nuklear.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuklear.h b/nuklear.h
index 1a40ef7..09ea7f7 100644
--- a/nuklear.h
+++ b/nuklear.h
@@ -20572,6 +20572,8 @@ nk_popup_begin(struct nk_context *ctx, enum nk_popup_type type,
win->popup.active = 0;
ctx->memory.allocated = allocated;
ctx->current = win;
+ nk_free_panel(ctx, popup->layout);
+ popup->layout = 0;
return 0;
}
}