comctl32: Fix a memory leak.

This commit is contained in:
Andrew Talbot 2007-09-14 00:15:55 +01:00 committed by Alexandre Julliard
parent 02114ac21f
commit 4ccd78c2a1
1 changed files with 1 additions and 0 deletions

View File

@ -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;