mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
use delete to free what's allocated using new
This commit is contained in:
parent
a33f04e077
commit
91b54dd66a
1 changed files with 1 additions and 1 deletions
|
@ -1204,7 +1204,7 @@ CookieRef::storeNoAck( bool acked, uint32_t packetID, void* data )
|
|||
sdata->buf, sdata->buflen );
|
||||
}
|
||||
free( sdata->buf );
|
||||
free( sdata );
|
||||
delete sdata;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue