mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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
|
static void
|
||||||
freeParams( LaunchParams* params )
|
freeParams( LaunchParams* params )
|
||||||
{
|
{
|
||||||
|
XP_U16 ii;
|
||||||
// linux_util_vt_destroy( params->util );
|
// linux_util_vt_destroy( params->util );
|
||||||
vtmgr_destroy( MPPARM(params->mpool) params->vtMgr );
|
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 );
|
mpool_destroy( params->mpool );
|
||||||
|
|
||||||
// free( params->util );
|
// free( params->util );
|
||||||
|
@ -1798,6 +1804,7 @@ main( int argc, char** argv )
|
||||||
/* defaults */
|
/* defaults */
|
||||||
#ifdef XWFEATURE_RELAY
|
#ifdef XWFEATURE_RELAY
|
||||||
mainParams.connInfo.relay.defaultSendPort = DEFAULT_PORT;
|
mainParams.connInfo.relay.defaultSendPort = DEFAULT_PORT;
|
||||||
|
mainParams.connInfo.relay.relayName = "localhost";
|
||||||
mainParams.connInfo.relay.invite = "INVITE";
|
mainParams.connInfo.relay.invite = "INVITE";
|
||||||
#endif
|
#endif
|
||||||
#ifdef XWFEATURE_IP_DIRECT
|
#ifdef XWFEATURE_IP_DIRECT
|
||||||
|
|
Loading…
Reference in a new issue