aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvurtun <polygone@gmx.net>2016-11-19 10:40:20 +0100
committervurtun <polygone@gmx.net>2016-11-19 10:40:20 +0100
commite7c06e027a7b7ad931e49654a9247705ca1e6c35 (patch)
tree878a0982cdef95f816c781f01e4b8870e95df515
parente229856391be87957b3d3275351157ff218d0203 (diff)
downloadsherlock.lv2-e7c06e027a7b7ad931e49654a9247705ca1e6c35.tar.xz
fixed memory leak caused by repeated popup closing
-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;
}
}