equal
deleted
inserted
replaced
65 sizeof(OGLSDOps)); |
65 sizeof(OGLSDOps)); |
66 WGLSDOps *wglsdo = (WGLSDOps *)malloc(sizeof(WGLSDOps)); |
66 WGLSDOps *wglsdo = (WGLSDOps *)malloc(sizeof(WGLSDOps)); |
67 |
67 |
68 J2dTraceLn(J2D_TRACE_INFO, "WGLSurfaceData_initOps"); |
68 J2dTraceLn(J2D_TRACE_INFO, "WGLSurfaceData_initOps"); |
69 |
69 |
70 if (oglsdo == NULL) { |
|
71 JNU_ThrowOutOfMemoryError(env, "Initialization of SurfaceData failed."); |
|
72 return; |
|
73 } |
|
74 if (wglsdo == NULL) { |
70 if (wglsdo == NULL) { |
75 JNU_ThrowOutOfMemoryError(env, "creating native wgl ops"); |
71 JNU_ThrowOutOfMemoryError(env, "creating native wgl ops"); |
|
72 return; |
|
73 } |
|
74 if (oglsdo == NULL) { |
|
75 free(wglsdo); |
|
76 JNU_ThrowOutOfMemoryError(env, "Initialization of SurfaceData failed."); |
76 return; |
77 return; |
77 } |
78 } |
78 |
79 |
79 oglsdo->privOps = wglsdo; |
80 oglsdo->privOps = wglsdo; |
80 |
81 |