Fix "GDI resource leak". (#2694)

"When you no longer need the HBRUSH object, call the DeleteObject function to delete it."
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createsolidbrush
👍
This commit is contained in:
XXxR4GALXxx 2021-12-25 18:45:19 -03:00 committed by GitHub
parent c0e375e743
commit be3cfd1bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -938,6 +938,7 @@ namespace entry
SelectObject(hdc, brush);
FillRect(hdc, &rect, brush);
ReleaseDC(_hwnd, hdc);
DeleteObject(brush);
}
void adjust(HWND _hwnd, uint32_t _width, uint32_t _height, bool _windowFrame)