提交 1b23375b 编写于 作者: N night_xiaoye

window: solve memory leak.

release memory while creating window failed.
上级 22958fbd
......@@ -270,6 +270,7 @@ void Platform::user_event_function(const SDL_Event &event) {
if (param) {
if (event_type == USER_CREATE_WINDOW) {
if (tasks_.find(param->taskId) != tasks_.end()) {
delete param;
return;
}
auto w = create_window(param->taskId, param->rect, param->title);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册