mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
fix leak: dispose struct before overwriting it
This commit is contained in:
parent
66d42fe5f2
commit
3e9bb1c6b9
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue