提交 333cb18f 编写于 作者: G Gerd Hoffmann

console: fix -vga none -sdl crash

Call get_alloc_displaystate() for proper initialization
instead of allocating with g_new().
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 a1d2db08
......@@ -1580,10 +1580,7 @@ DisplayState *init_displaystate(void)
gchar *name;
int i;
if (!display_state) {
display_state = g_new0(DisplayState, 1);
}
get_alloc_displaystate();
for (i = 0; i < nb_consoles; i++) {
if (consoles[i]->console_type != GRAPHIC_CONSOLE &&
consoles[i]->ds == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册