fix memory leaks

This commit is contained in:
Eric House 2013-12-17 22:16:52 -08:00
parent bece99bb98
commit 0ad18efcff
2 changed files with 3 additions and 0 deletions

View file

@ -557,6 +557,8 @@ smsInviteReceived( void* closure, const XP_UCHAR* gameName, XP_U32 gameID,
globals->cGlobals.selRow = -1;
recordOpened( apg, globals );
gtk_widget_show( gameWindow );
gi_disposePlayerInfo( MPPARM(params->mpool) &gi );
}
static void

View file

@ -375,6 +375,7 @@ linux_sms2_send( LaunchParams* params, const XP_U8* buf,
if ( 0 >= send_sms( storage, stream, phone, port ) ) {
buflen = -1;
}
stream_destroy( stream );
return buflen;
}