8313252: Java_sun_awt_windows_ThemeReader_paintBackground release resources in early returns

Reviewed-by: clanger
This commit is contained in:
Matthias Baesken
2023-07-31 14:57:28 +00:00
parent b60e0adad6
commit 3671d83c87

View File

@@ -421,6 +421,7 @@ JNIEXPORT void JNICALL Java_sun_awt_windows_ThemeReader_paintBackground
NULL, 0);
if (hDibSection == NULL) {
DTRACE_PRINTLN("Error creating DIB section");
DeleteDC(memDC);
ReleaseDC(NULL,defaultDC);
return;
}