提交 bcccda1f 编写于 作者: M mbaesken

8230769: BufImg_SetupICM add ReleasePrimitiveArrayCritical call in early return

Reviewed-by: prr, stuefe
上级 ece0b0e1
/*
* 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
......@@ -296,6 +296,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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册