提交 a3938d09 编写于 作者: S serb

8057830: Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface

Reviewed-by: serb, denis
Contributed-by: NHendrik Schreiber <hs@tagtraum.com>
上级 d6ace729
......@@ -72,7 +72,9 @@ OGLGC_DestroyOGLGraphicsConfig(jlong pConfigInfo)
}
[pool drain];
free(ctxinfo);
oglc->ctxInfo = NULL;
}
cglinfo->context = NULL;
}
free(cglinfo);
......
......@@ -187,6 +187,11 @@ OGLSD_SetScratchSurface(JNIEnv *env, jlong pConfigInfo)
}
OGLContext *oglc = cglInfo->context;
if (oglc == NULL) {
J2dRlsTraceLn(J2D_TRACE_ERROR, "OGLSD_SetScratchContext: ogl context is null");
return NULL;
}
CGLCtxInfo *ctxinfo = (CGLCtxInfo *)oglc->ctxInfo;
JNF_COCOA_ENTER(env);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册