mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
plug a leak
This commit is contained in:
parent
f3b76da8e1
commit
8b26d6bc4e
1 changed files with 4 additions and 0 deletions
|
@ -634,6 +634,10 @@ pickGame( Globals* globals )
|
|||
const char* msg = "Choose game to open:";
|
||||
call_pickGame(msg, nis.ids, nis.names, nis.count, onGameChosen, globals);
|
||||
|
||||
for ( int ii = 0; ii < nis.count; ++ii ) {
|
||||
XP_FREE( globals->mpool, nis.names[ii] );
|
||||
XP_FREE( globals->mpool, nis.ids[ii] );
|
||||
}
|
||||
XP_FREE( globals->mpool, nis.names );
|
||||
XP_FREE( globals->mpool, nis.ids );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue