Nikolay Sivov : comctl32: Fix a ranges leak on error.

Alexandre Julliard julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012


Module: wine
Branch: master
Commit: 9ed808e340cd7aa1e36993b0d55f751335896e0d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9ed808e340cd7aa1e36993b0d55f751335896e0d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Dec  8 20:25:06 2012 +0400

comctl32: Fix a ranges leak on error.

---

 dlls/comctl32/listview.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 4bac508..918faa8 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -4954,6 +4954,8 @@ static void LISTVIEW_RefreshReportGrid(LISTVIEW_INFO *infoPtr, HDC hdc)
         SelectObject( hdc, hOldPen );
         DeleteObject( hPen );
     }
+    else
+        ranges_destroy(colRanges);
 }
 
 /***




More information about the wine-cvs mailing list