mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
nuke tmpModel earlier
This commit is contained in:
parent
500651c1f9
commit
6096d97463
1 changed files with 1 additions and 2 deletions
|
@ -1566,14 +1566,13 @@ model_writeGameHistory( ModelCtxt* model, XWStreamCtxt* stream,
|
||||||
|
|
||||||
tmpModel = makeTmpModel( model, stream, printMovePre, printMovePost,
|
tmpModel = makeTmpModel( model, stream, printMovePre, printMovePost,
|
||||||
&closure );
|
&closure );
|
||||||
|
model_destroy( tmpModel );
|
||||||
|
|
||||||
if ( gameOver ) {
|
if ( gameOver ) {
|
||||||
/* if the game's over, it shouldn't matter which model I pass to this
|
/* if the game's over, it shouldn't matter which model I pass to this
|
||||||
method */
|
method */
|
||||||
server_writeFinalScores( server, stream );
|
server_writeFinalScores( server, stream );
|
||||||
}
|
}
|
||||||
|
|
||||||
model_destroy( tmpModel );
|
|
||||||
} /* model_writeGameHistory */
|
} /* model_writeGameHistory */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue