mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
Fixed memory leak in OP_VeteranRewardsAvailable
This commit is contained in:
@@ -2157,6 +2157,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;
|
||||
@@ -2181,7 +2182,7 @@ ENCODE(OP_VetRewardsAvaliable)
|
||||
}
|
||||
|
||||
dest->FastQueuePacket(&outapp_create);
|
||||
delete[] __emu_buffer;
|
||||
delete inapp;
|
||||
}
|
||||
|
||||
ENCODE(OP_WhoAllResponse)
|
||||
|
||||
Reference in New Issue
Block a user