animate: fix mem leak

Dimitrie O. Paun dpaun at rogers.com
Sun Mar 20 10:09:42 CST 2005


ChangeLog
    Delete the critical section when freeing up the infoPtr.


Index: dlls/comctl32/animate.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/animate.c,v
retrieving revision 1.64
diff -u -r1.64 animate.c
--- dlls/comctl32/animate.c	18 Mar 2005 10:30:13 -0000	1.64
+++ dlls/comctl32/animate.c	20 Mar 2005 15:06:04 -0000
@@ -811,6 +821,8 @@
 
     /* free animate info data */
     SetWindowLongPtrW(infoPtr->hwndSelf, 0, 0);
+
+    DeleteCriticalSection(&infoPtr->cs);
     Free(infoPtr);
 
     return 0;

-- 
Dimi.



More information about the wine-patches mailing list