From 3e7c8e78dc2f54569d5c7c769eb541731c6c7977 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Mon, 21 Mar 2005 10:27:58 +0000 Subject: [PATCH] Delete the critical section when freeing up the infoPtr. --- dlls/comctl32/animate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c index e420cb6939..3e5b9abcc3 100644 --- a/dlls/comctl32/animate.c +++ b/dlls/comctl32/animate.c @@ -811,6 +811,8 @@ static LRESULT ANIMATE_Destroy(ANIMATE_INFO *infoPtr) /* free animate info data */ SetWindowLongPtrW(infoPtr->hwndSelf, 0, 0); + + DeleteCriticalSection(&infoPtr->cs); Free(infoPtr); return 0;