Skip to content

Commit 7ecde2e

Browse files
committed
8230769: BufImg_SetupICM add ReleasePrimitiveArrayCritical call in early return
Reviewed-by: prr, stuefe
1 parent 36768f2 commit 7ecde2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.desktop/share/native/libawt/awt/image/BufImgSurfaceData.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -351,6 +351,7 @@ static ColorData *BufImg_SetupICM(JNIEnv *env,
351351

352352
cData->img_clr_tbl = initCubemap(pRgb, bisdo->lutsize, 32);
353353
if (cData->img_clr_tbl == NULL) {
354+
(*env)->ReleasePrimitiveArrayCritical(env, bisdo->lutarray, pRgb, JNI_ABORT);
354355
free(cData);
355356
return (ColorData*)NULL;
356357
}

0 commit comments

Comments
 (0)