Module: wine Branch: master Commit: 4ccd78c2a1f2531b0cd42960821f6472cbe487c3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ccd78c2a1f2531b0cd4296082... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Fri Sep 14 00:15:55 2007 +0100 comctl32: Fix a memory leak. --- dlls/comctl32/treeview.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 7699f65..29d5662 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -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;