comctl32: Fix a ranges leak on error
Nikolay Sivov
nsivov at codeweavers.com
Sun Dec 9 00:31:47 CST 2012
Fix a ranges leak on error
-------------- next part --------------
>From aaf6517c753b9720178672c0fe555353c2d32f03 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat, 8 Dec 2012 20:25:06 +0400
Subject: [PATCH 7/8] Fix a ranges leak on error
---
dlls/comctl32/listview.c | 2 ++
1 file changed, 2 insertions(+)
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);
}
/***
--
1.7.10.4
More information about the wine-patches
mailing list