Handle output errors correctly

This commit is contained in:
Alexander Larsson
2010-11-24 22:12:50 +01:00
parent 0ca5a1a574
commit 0539303dfc
3 changed files with 7 additions and 6 deletions

View File

@ -180,7 +180,11 @@ dirty_flush_idle (gpointer data)
}
}
broadway_output_flush (output);
if (!broadway_output_flush (display->output))
{
broadway_output_free (display->output);
display->output = NULL;
}
return FALSE;
}