free memory

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@466 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-22 18:01:56 +00:00
parent 5629e677df
commit 986de84d0d

View File

@@ -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);