mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
fix a couple of leaks
This commit is contained in:
parent
bf479c4334
commit
66d42fe5f2
1 changed files with 7 additions and 0 deletions
|
@ -1730,9 +1730,15 @@ initParams( LaunchParams* params )
|
|||
static void
|
||||
freeParams( LaunchParams* params )
|
||||
{
|
||||
XP_U16 ii;
|
||||
// linux_util_vt_destroy( params->util );
|
||||
vtmgr_destroy( MPPARM(params->mpool) params->vtMgr );
|
||||
|
||||
XP_FREEP( params->mpool, ¶ms->pgi.dictName );
|
||||
for ( ii = 0; ii < params->nLocalPlayers; ++ii ) {
|
||||
XP_FREEP( params->mpool, ¶ms->pgi.players[ii].name );
|
||||
}
|
||||
|
||||
mpool_destroy( params->mpool );
|
||||
|
||||
// free( params->util );
|
||||
|
@ -1798,6 +1804,7 @@ main( int argc, char** argv )
|
|||
/* defaults */
|
||||
#ifdef XWFEATURE_RELAY
|
||||
mainParams.connInfo.relay.defaultSendPort = DEFAULT_PORT;
|
||||
mainParams.connInfo.relay.relayName = "localhost";
|
||||
mainParams.connInfo.relay.invite = "INVITE";
|
||||
#endif
|
||||
#ifdef XWFEATURE_IP_DIRECT
|
||||
|
|
Loading…
Reference in a new issue