Fix GDI object leak
DeleteObject parameter must be a handle, not a pointer to a handle. Task-number: QTBUG-26835 Change-Id: Id5de2b0b067bd9fc45c1c8ead4f7d67f0162f070 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
609b0a9c2e
commit
30f3432845
@ -1399,7 +1399,7 @@ static inline void addRectToWinRegion(const QRect &rect, HRGN *winRegion)
|
||||
if (const HRGN rectRegion = createRectRegion(rect)) {
|
||||
HRGN result = CreateRectRgn(0, 0, 0, 0);
|
||||
if (CombineRgn(result, *winRegion, rectRegion, RGN_OR)) {
|
||||
DeleteObject(winRegion);
|
||||
DeleteObject(*winRegion);
|
||||
*winRegion = result;
|
||||
}
|
||||
DeleteObject(rectRegion);
|
||||
|
Loading…
Reference in New Issue
Block a user