Fixed a memory leak in Windows uiForm. NOW OS X.
This commit is contained in:
parent
662c9de179
commit
61a94fde57
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue