mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 02:38:45 +00:00
Fixed memory leak in OP_VeteranRewardsAvailable
This commit is contained in:
@@ -1735,6 +1735,7 @@ ENCODE(OP_VetRewardsAvaliable)
|
||||
unsigned char * __emu_buffer = inapp->pBuffer;
|
||||
|
||||
uint32 count = ((*p)->Size() / sizeof(InternalVeteranReward));
|
||||
*p = NULL;
|
||||
|
||||
EQApplicationPacket *outapp_create = new EQApplicationPacket(OP_VetRewardsAvaliable, (sizeof(structs::VeteranReward)*count));
|
||||
uchar *old_data = __emu_buffer;
|
||||
@@ -1759,7 +1760,7 @@ ENCODE(OP_VetRewardsAvaliable)
|
||||
}
|
||||
|
||||
dest->FastQueuePacket(&outapp_create);
|
||||
delete[] __emu_buffer;
|
||||
delete inapp;
|
||||
}
|
||||
|
||||
ENCODE(OP_DeleteSpawn) {
|
||||
|
||||
Reference in New Issue
Block a user