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