From 66d42fe5f2813cd3a806df275ce7538c0f7c7dd4 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 7 May 2013 07:07:10 -0700 Subject: [PATCH] fix a couple of leaks --- xwords4/linux/linuxmain.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xwords4/linux/linuxmain.c b/xwords4/linux/linuxmain.c index ce9ff07c6..624eedc7f 100644 --- a/xwords4/linux/linuxmain.c +++ b/xwords4/linux/linuxmain.c @@ -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