mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8313252: Java_sun_awt_windows_ThemeReader_paintBackground release resources in early returns
Reviewed-by: clanger
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user