From e7c06e027a7b7ad931e49654a9247705ca1e6c35 Mon Sep 17 00:00:00 2001 From: vurtun Date: Sat, 19 Nov 2016 10:40:20 +0100 Subject: fixed memory leak caused by repeated popup closing --- CHANGELOG.md | 1 + nuklear.h | 2 ++ 2 files changed, 3 insertions(+) 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; } } -- cgit v1.2.1