mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-19 04:13:07 +00:00
8313252: Java_sun_awt_windows_ThemeReader_paintBackground release resources in early returns
Reviewed-by: clanger
This commit is contained in:
parent
b60e0adad6
commit
3671d83c87
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user