Don't use free'd pointer in status control - found by Valgrind

Mike McCormack mike at codeweavers.com
Sun Oct 19 09:33:52 CDT 2003


ChangeLog;
* Don't use free'd pointer in status control - found by Valgrind
-------------- next part --------------
Index: dlls/comctl32/status.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/status.c,v
retrieving revision 1.62
diff -u -r1.62 status.c
--- dlls/comctl32/status.c	22 Sep 2003 21:32:33 -0000	1.62
+++ dlls/comctl32/status.c	18 Oct 2003 01:01:27 -0000
@@ -807,8 +807,8 @@
     if (infoPtr->hwndToolTip)
 	DestroyWindow (infoPtr->hwndToolTip);
 
-    Free (infoPtr);
     SetWindowLongW(infoPtr->Self, 0, 0);
+    Free (infoPtr);
     return 0;
 }
 


More information about the wine-patches mailing list