aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--nuklear.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb88317..96e486e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
# Changelog
+- 2016/11/10 (1.183)- Fixed memory leak caused by popup repeated closing
- 2016/11/10 (1.182)- Fixed memory leak caused by popup panel allocation
- 2016/11/10 (1.181)- Fixed some warnings and C++ error
- 2016/11/10 (1.180)- Added additional `nk_button` versions which allows to directly
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;
}
}