comctl32: Fix a memory leak
Andrew Talbot
andrew.talbot at talbotville.com
Thu Sep 13 18:15:55 CDT 2007
Changelog:
comctl32: Fix a memory leak.
diff -urN a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
--- a/dlls/comctl32/treeview.c 2007-09-11 17:19:59.000000000 +0100
+++ b/dlls/comctl32/treeview.c 2007-09-13 15:51:43.000000000 +0100
@@ -3803,6 +3803,7 @@
if (ptr == NULL)
{
ERR("OutOfMemory, cannot allocate space for label\n");
+ if(newText != tmpText) Free(newText);
DestroyWindow(infoPtr->hwndEdit);
infoPtr->hwndEdit = 0;
return FALSE;
More information about the wine-patches
mailing list