提交 c4b4ceff 编写于 作者: H hanyuhang

Renderer.cpp:

avoid dereferencing a pointer that might be "nullptr"
上级 053431f5
......@@ -460,7 +460,11 @@ HandleType Renderer::createWindowSurface(int p_config, int p_width,
ret = genHandle();
m_windows[ret] = std::pair<WindowSurfacePtr, HandleType>(win, 0);
RenderThreadInfo *tinfo = RenderThreadInfo::get();
tinfo->m_windowSet.insert(ret);
if (tinfo) {
tinfo->m_windowSet.insert(ret);
}else{
ERROR("tinfo == nullptr!!!");
}
}
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册