ddraw: Don't leak the window region if we have an extra clip rect in ddraw_clipper_GetClipList().
This commit is contained in:
parent
de807eb21c
commit
01992d7fb5
|
@ -194,6 +194,8 @@ static HRESULT WINAPI ddraw_clipper_GetClipList(IDirectDrawClipper *iface, RECT
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (clipper->window)
|
||||
DeleteObject(region);
|
||||
region = clip_region;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue