mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Fix a couple of robustness issues.
[originally from svn r5873]
This commit is contained in:
6
gtk.c
6
gtk.c
@ -1011,7 +1011,11 @@ static frontend *new_window(char *game_id, char **error)
|
||||
|
||||
fe = snew(frontend);
|
||||
|
||||
fe->timer_active = FALSE;
|
||||
fe->timer_id = -1;
|
||||
|
||||
fe->me = midend_new(fe, &thegame);
|
||||
|
||||
if (game_id) {
|
||||
*error = midend_game_id(fe->me, game_id);
|
||||
if (*error) {
|
||||
@ -1200,8 +1204,6 @@ static frontend *new_window(char *game_id, char **error)
|
||||
fe->fonts = NULL;
|
||||
fe->nfonts = fe->fontsize = 0;
|
||||
|
||||
fe->timer_active = FALSE;
|
||||
|
||||
fe->paste_data = NULL;
|
||||
fe->paste_data_len = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user