[Fix] Repair a memory leak in GuildsList (#4585)

There was a leak generated when sending the GuildsList

Co-authored-by: Mitch Freeman <neckkola@gmail.com>
This commit is contained in:
Mitch FreemanandMitch Freeman authored and GitHub committed 2025-01-05 23:45:09 -06:00
1 parent 20ff325013
commit b40e4ce7cd
1 file changed
+4 -4
+4 -4
View File
@@ -1845,11 +1845,11 @@ namespace RoF2
}
}
auto outapp = new EQApplicationPacket(OP_GuildsList);
outapp->size = packet_size;
outapp->pBuffer = buffer;
safe_delete_array(in->pBuffer);
dest->FastQueuePacket(&outapp);
in->pBuffer = buffer;
in->size = packet_size;
dest->FastQueuePacket(&in);
}
ENCODE(OP_GuildTributeDonateItem)