Fixed a memory leak in Windows uiForm. NOW OS X.

This commit is contained in:
Pietro Gagliardi 2016-06-10 22:29:20 -04:00
parent 662c9de179
commit 61a94fde57
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ void uiFormAppend(uiForm *f, const char *label, uiControl *c, int stretchy)
SS_LEFT | SS_NOPREFIX, SS_LEFT | SS_NOPREFIX,
hInstance, NULL, hInstance, NULL,
TRUE); TRUE);
uiFree(wlabel);
uiWindowsEnsureSetParentHWND(fc.label, f->hwnd); uiWindowsEnsureSetParentHWND(fc.label, f->hwnd);
fc.stretchy = stretchy; fc.stretchy = stretchy;
uiControlSetParent(fc.c, uiControl(f)); uiControlSetParent(fc.c, uiControl(f));