From 61a94fde57b8e650e18e04235754a0e0ec7f671b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 10 Jun 2016 22:29:20 -0400 Subject: [PATCH] Fixed a memory leak in Windows uiForm. NOW OS X. --- windows/form.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/form.cpp b/windows/form.cpp index a22f0f89..64b55a31 100644 --- a/windows/form.cpp +++ b/windows/form.cpp @@ -248,6 +248,7 @@ void uiFormAppend(uiForm *f, const char *label, uiControl *c, int stretchy) SS_LEFT | SS_NOPREFIX, hInstance, NULL, TRUE); + uiFree(wlabel); uiWindowsEnsureSetParentHWND(fc.label, f->hwnd); fc.stretchy = stretchy; uiControlSetParent(fc.c, uiControl(f));