From 2e4e5d61f21ce44386a96c83ad07444bf337ce21 Mon Sep 17 00:00:00 2001 From: taw27 Date: Tue, 15 Jul 2008 18:57:44 +0000 Subject: Don't crash if audio can't be used git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@135 84d2e878-0bd5-11dd-ad15-13eda11d74c5 --- src/game.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 8a3edde..ff757f4 100644 --- a/src/game.c +++ b/src/game.c @@ -264,8 +264,6 @@ Game *game_new(int width, int height, GameOptions gameopts) { g->audio = audio_setup(gameopts.audio_debug, gameopts.no_music); if ( g->audio == NULL ) { fprintf(stderr, "Couldn't initialise audio\n"); - free(g); - return NULL; } /* Load models */ -- cgit v1.2.3