forked from pyrite-dev/milsko
free memory
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@466 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
5629e677df
commit
986de84d0d
1 changed files with 5 additions and 0 deletions
|
|
@ -12,8 +12,13 @@ MwListBoxPacket* MwListBoxCreatePacket(void) {
|
|||
|
||||
void MwListBoxDestroyPacket(MwListBoxPacket* packet) {
|
||||
int i;
|
||||
int j;
|
||||
|
||||
for(i = 0; i < arrlen(packet->names); i++) {
|
||||
for(j = 0; j < arrlen(packet->names[i]); j++){
|
||||
if(packet->names[i][j] != NULL) free(packet->names[i][j]);
|
||||
}
|
||||
arrfree(packet->names[i]);
|
||||
}
|
||||
|
||||
arrfree(packet->names);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue