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 Oct 26, 2023
1 parent 2a9f6e8 commit 8258f27
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,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 8258f27

@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.