ddraw: Don't leak the window region if we have an extra clip rect in ddraw_clipper_GetClipList().

This commit is contained in:
Henri Verbeet 2012-01-08 21:14:57 +01:00 committed by Alexandre Julliard
parent de807eb21c
commit 01992d7fb5
1 changed files with 2 additions and 0 deletions

View File

@ -194,6 +194,8 @@ static HRESULT WINAPI ddraw_clipper_GetClipList(IDirectDrawClipper *iface, RECT
return E_FAIL;
}
if (clipper->window)
DeleteObject(region);
region = clip_region;
}