mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-20 16:14:07 +00:00
free memory
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@466 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -12,8 +12,13 @@ MwListBoxPacket* MwListBoxCreatePacket(void) {
|
|||||||
|
|
||||||
void MwListBoxDestroyPacket(MwListBoxPacket* packet) {
|
void MwListBoxDestroyPacket(MwListBoxPacket* packet) {
|
||||||
int i;
|
int i;
|
||||||
|
int j;
|
||||||
|
|
||||||
for(i = 0; i < arrlen(packet->names); i++) {
|
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);
|
arrfree(packet->names);
|
||||||
|
|||||||
Reference in New Issue
Block a user