mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 19:08:23 +00:00
8230769: BufImg_SetupICM add ReleasePrimitiveArrayCritical call in early return
Reviewed-by: prr, stuefe
This commit is contained in:
parent
36768f2a72
commit
7ecde2ec48
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -351,6 +351,7 @@ static ColorData *BufImg_SetupICM(JNIEnv *env,
|
||||
|
||||
cData->img_clr_tbl = initCubemap(pRgb, bisdo->lutsize, 32);
|
||||
if (cData->img_clr_tbl == NULL) {
|
||||
(*env)->ReleasePrimitiveArrayCritical(env, bisdo->lutarray, pRgb, JNI_ABORT);
|
||||
free(cData);
|
||||
return (ColorData*)NULL;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user