[PATCH 2/5] ddraw: Don't leak the window region if we have an extra clip rect in ddraw_clipper_GetClipList().
Henri Verbeet
hverbeet at codeweavers.com
Sun Jan 8 14:14:57 CST 2012
---
dlls/ddraw/clipper.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/clipper.c b/dlls/ddraw/clipper.c
index 5c605d8..fb5c022 100644
--- a/dlls/ddraw/clipper.c
+++ b/dlls/ddraw/clipper.c
@@ -194,6 +194,8 @@ static HRESULT WINAPI ddraw_clipper_GetClipList(IDirectDrawClipper *iface, RECT
return E_FAIL;
}
+ if (clipper->window)
+ DeleteObject(region);
region = clip_region;
}
--
1.7.3.4
More information about the wine-patches
mailing list