forked from Mirrors/wine-wine
comctl32: Fix a memory leak.
parent
02114ac21f
commit
4ccd78c2a1
|
@ -3803,6 +3803,7 @@ TREEVIEW_EndEditLabelNow(TREEVIEW_INFO *infoPtr, BOOL bCancel)
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
{
|
{
|
||||||
ERR("OutOfMemory, cannot allocate space for label\n");
|
ERR("OutOfMemory, cannot allocate space for label\n");
|
||||||
|
if(newText != tmpText) Free(newText);
|
||||||
DestroyWindow(infoPtr->hwndEdit);
|
DestroyWindow(infoPtr->hwndEdit);
|
||||||
infoPtr->hwndEdit = 0;
|
infoPtr->hwndEdit = 0;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue