Skip to content

Commit

Permalink
8313252: Java_sun_awt_windows_ThemeReader_paintBackground release res…
Browse files Browse the repository at this point in the history
…ources in early returns

Backport-of: 3671d83c87302ead09d4ebce9cb85bdd803a0c20
  • Loading branch information
MBaesken committed Dec 4, 2023
1 parent 360bab8 commit 229ddde
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -460,6 +460,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;
}
Expand Down

1 comment on commit 229ddde

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.