comparison src/share/native/sun/awt/image/BufImgSurfaceData.c @ 2516:e03065fc64e7

6959998: Return of SurfaceData_InitOps point not checked in all cases (parfait found these) Reviewed-by: prr Contributed-by: ohair <kelly.ohair@oracle.com>
author igor
date Mon, 12 Jul 2010 13:16:28 -0700
parents 00cd9dc3c2b5
children 33cc629889bd
comparison
equal deleted inserted replaced
1:868e4007c709 2:c19c214c6a46
109 jint pixStr, jint scanStr, 109 jint pixStr, jint scanStr,
110 jobject icm) 110 jobject icm)
111 { 111 {
112 BufImgSDOps *bisdo = 112 BufImgSDOps *bisdo =
113 (BufImgSDOps*)SurfaceData_InitOps(env, bisd, sizeof(BufImgSDOps)); 113 (BufImgSDOps*)SurfaceData_InitOps(env, bisd, sizeof(BufImgSDOps));
114 if (bisdo == NULL) {
115 JNU_ThrowOutOfMemoryError(env, "Initialization of SurfaceData failed.");
116 return;
117 }
114 bisdo->sdOps.Lock = BufImg_Lock; 118 bisdo->sdOps.Lock = BufImg_Lock;
115 bisdo->sdOps.GetRasInfo = BufImg_GetRasInfo; 119 bisdo->sdOps.GetRasInfo = BufImg_GetRasInfo;
116 bisdo->sdOps.Release = BufImg_Release; 120 bisdo->sdOps.Release = BufImg_Release;
117 bisdo->sdOps.Unlock = NULL; 121 bisdo->sdOps.Unlock = NULL;
118 bisdo->sdOps.Dispose = BufImg_Dispose; 122 bisdo->sdOps.Dispose = BufImg_Dispose;