fix leak: dispose struct before overwriting it

This commit is contained in:
Eric House 2013-05-08 06:38:52 -07:00
parent 66d42fe5f2
commit 3e9bb1c6b9

View file

@ -2329,8 +2329,8 @@ main( int argc, char** argv )
}
if ( mainParams.needsNewGame ) {
gi_initPlayerInfo( MPPARM(mainParams.mpool)
&mainParams.pgi, NULL );
gi_disposePlayerInfo( MPPARM(mainParams.mpool) &mainParams.pgi );
gi_initPlayerInfo( MPPARM(mainParams.mpool) &mainParams.pgi, NULL );
}
/* curses doesn't have newgame dialog */