server: Check create_event return value in console creation.
This commit is contained in:
parent
456de20085
commit
4bc7c59f44
|
@ -294,7 +294,7 @@ static struct object *create_console_input( struct thread* renderer )
|
||||||
console_input->win = 0;
|
console_input->win = 0;
|
||||||
console_input->event = create_event( NULL, NULL, 0, 1, 0, NULL );
|
console_input->event = create_event( NULL, NULL, 0, 1, 0, NULL );
|
||||||
|
|
||||||
if (!console_input->history || !console_input->evt)
|
if (!console_input->history || !console_input->evt || !console_input->event)
|
||||||
{
|
{
|
||||||
release_object( console_input );
|
release_object( console_input );
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue