< prev index next >

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

Print this page

        

*** 348,357 **** --- 348,361 ---- free(cData); return (ColorData*)NULL; } cData->img_clr_tbl = initCubemap(pRgb, bisdo->lutsize, 32); + if (cData->img_clr_tbl == NULL) { + free(cData); + return (ColorData*)NULL; + } cData->representsPrimaries = calculatePrimaryColorsApproximation(pRgb, cData->img_clr_tbl, 32); if (allGray == JNI_TRUE) { initInverseGrayLut(pRgb, bisdo->lutsize, cData); } (*env)->ReleasePrimitiveArrayCritical(env, bisdo->lutarray, pRgb,
< prev index next >