mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 15:25:27 +00:00
6983562: Two java/awt tests failing just on jdk7b108
Reviewed-by: art, denis, dcherepanov
This commit is contained in:
parent
d9212b0817
commit
30d9e9d6dc
@ -317,7 +317,9 @@ void AwtButton::_SetLabel(void *param)
|
||||
badAlloc = 1;
|
||||
} else {
|
||||
c->SetText(labelStr);
|
||||
JNU_ReleaseStringPlatformChars(env, label, labelStr);
|
||||
if (label != NULL) {
|
||||
JNU_ReleaseStringPlatformChars(env, label, labelStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -384,7 +384,9 @@ void AwtCheckbox::_SetLabel(void *param)
|
||||
{
|
||||
c->SetText(labelStr);
|
||||
c->VerifyState();
|
||||
JNU_ReleaseStringPlatformChars(env, label, labelStr);
|
||||
if (label != NULL) {
|
||||
JNU_ReleaseStringPlatformChars(env, label, labelStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user