jdk/src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
changeset 19355 84011dfd634b
parent 18232 b538b71fb429
child 23010 6dadb192ad81
equal deleted inserted replaced
19354:e5a4f2784bf2 19355:84011dfd634b
    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