mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-28 03:46:09 +01:00
some small additions to the event and list system, and some retractions of previously changed code.
This commit is contained in:
parent
650be85257
commit
ad3bb8bc64
11 changed files with 193 additions and 59 deletions
|
|
@ -344,7 +344,8 @@ void ProtocolDestroy( protocol_t *apProtocol )
|
|||
|
||||
for ( i = eMSDP_NONE+1; i < eMSDP_MAX; ++i )
|
||||
{
|
||||
free(apProtocol->pVariables[i]->pValueString);
|
||||
if (apProtocol->pVariables[i]->pValueString)
|
||||
free(apProtocol->pVariables[i]->pValueString);
|
||||
free(apProtocol->pVariables[i]);
|
||||
}
|
||||
|
||||
|
|
@ -1730,7 +1731,8 @@ static void PerformSubnegotiation( descriptor_t *apDescriptor, char aCmd, char *
|
|||
const char *pStartPos = strstr( pClientName, "-" );
|
||||
|
||||
/* Store the TTYPE */
|
||||
free(pProtocol->pLastTTYPE);
|
||||
if (pProtocol->pLastTTYPE)
|
||||
free(pProtocol->pLastTTYPE);
|
||||
pProtocol->pLastTTYPE = AllocString(pClientName);
|
||||
|
||||
/* Look for 256 colour support */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue