提交 b521ee18 编写于 作者: R Romain Vimont

Fix double-free on error

Commit 44aa7f2c added calls to destroy
the renderer and the window, but forgot to remove the call to
screen_destroy() they were supposed to replace.
上级 025388d3
......@@ -322,7 +322,6 @@ screen_init_rendering(struct screen *screen, const char *window_title,
LOGC("Could not create texture: %s", SDL_GetError());
SDL_DestroyRenderer(screen->renderer);
SDL_DestroyWindow(screen->window);
screen_destroy(screen);
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册