plug a leak

This commit is contained in:
Eric House 2021-03-08 22:27:55 -08:00
parent f3b76da8e1
commit 8b26d6bc4e

View file

@ -634,6 +634,10 @@ pickGame( Globals* globals )
const char* msg = "Choose game to open:"; const char* msg = "Choose game to open:";
call_pickGame(msg, nis.ids, nis.names, nis.count, onGameChosen, globals); 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.names );
XP_FREE( globals->mpool, nis.ids ); XP_FREE( globals->mpool, nis.ids );
} }