mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
console: fix -vga none -sdl crash
Call get_alloc_displaystate() for proper initialization instead of allocating with g_new(). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
+1
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user