Quintinon b5c4357de2
[Bug Fix] Fix miscellaneous memory leaks related to EQApplicationPacket and it's pBuffer (#2262)
* Delete EQApplicationPacket after use

* Correct issue where Creating EQApplicationPackets in zone/mob.cpp may not free pBuffer[]

* Handle freeing pBuffer[] if exists in zone/mob.cpp Create*Packet functions

* Handle freeing pBuffer[] in zone/object.cpp Create*Packet methods

* Delete leaked outapp variables in zone/trading.cpp

* Make CreateHorseSpawnPacket() safer by freeing pBuffer[] before replacing with new[]

* Prevent initial new ServerPacket from being leaked in command_reload

* Free pack after sending in command_setlsinfo

* Delete new NPC in command_viewnpctype after printing stats

* Fix compile error

* Delete EQApplicationPacket after sending in command_kick

* Remove unneeded safe_delete(outapp) after FastQueuePacket and fix minor whitespace issue

* Delete packet after sending in WorldServer::SendReloadTasks

* Cleanup logic and free leaked NPCType in Client::Doppelganger

* Free RespawnOption in Client::HandleRespawnFromHover in 'unexpected rez from hover request' branch

* Free EQApplicationPacket after sending in Bot::ProcessBotInspectionRequest

* Free Bot when returning from failed Bot::Save() in helper_bot_create()

* Initialize variable to nullptr to prevent garbage initial value

* Undo change in other PR
2022-07-02 22:10:51 -05:00
..
2015-06-20 19:44:00 -07:00
2020-03-12 00:00:39 -05:00
2021-08-31 01:24:21 -05:00
2021-10-03 13:25:49 -04:00
2019-10-12 21:07:06 -07:00
2019-10-12 21:07:06 -07:00
2013-05-09 11:37:51 -04:00
2018-03-04 13:54:28 -05:00
2013-05-09 11:37:51 -04:00
2022-05-09 20:49:43 -05:00
2022-05-09 20:49:43 -05:00
2022-05-09 20:49:43 -05:00
2022-05-09 20:49:43 -05:00
2017-05-15 15:46:19 -07:00
2022-05-27 23:57:55 -04:00
2013-02-16 16:14:39 -08:00
2014-08-21 23:46:01 -07:00
2014-08-21 23:46:01 -07:00
2022-06-10 13:52:22 -04:00
2018-11-07 21:55:12 -08:00
2022-05-09 20:49:43 -05:00
2016-05-25 16:10:28 -04:00
2020-04-19 04:36:39 -05:00
2016-05-25 16:10:28 -04:00
2013-05-09 11:37:51 -04:00
2022-05-09 20:49:43 -05:00
2014-12-15 19:16:53 -06:00
2017-07-15 20:29:55 -07:00
2020-01-31 20:25:06 -06:00