Mercurial > hg > release > icedtea7-forest-2.6 > jdk
changeset 9979:b164f5d98fa2
8230769: BufImg_SetupICM add ReleasePrimitiveArrayCritical call in early return
Reviewed-by: prr, stuefe, mbalao
author | mbaesken |
---|---|
date | Tue, 21 Jul 2020 16:28:42 +0100 |
parents | ad53fa2d8eac |
children | aadfefa63ebc |
files | src/share/native/sun/awt/image/BufImgSurfaceData.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/native/sun/awt/image/BufImgSurfaceData.c Fri May 17 17:52:02 2019 +0200 +++ b/src/share/native/sun/awt/image/BufImgSurfaceData.c Tue Jul 21 16:28:42 2020 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2014, 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 @@ -294,6 +294,7 @@ CHECK_NULL_RETURN(pRgb, (ColorData*)NULL); 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; }