ddraw: Don't leak the window DC.
This commit is contained in:
parent
d463243754
commit
769fd080f8
|
@ -130,6 +130,7 @@ static HRGN get_window_region(HWND window)
|
|||
OffsetRgn(rgn, origin.x, origin.y);
|
||||
}
|
||||
|
||||
ReleaseDC(window, dc);
|
||||
return rgn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue