mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Fix memory leaks found by Quint (#2248)
This commit is contained in:
parent
fcc7725ca3
commit
63ba5dc3ab
@ -1504,6 +1504,7 @@ void Client::SendGuildList() {
|
|||||||
//ask the guild manager to build us a nice guild list packet
|
//ask the guild manager to build us a nice guild list packet
|
||||||
outapp->pBuffer = guild_mgr.MakeGuildList("", outapp->size);
|
outapp->pBuffer = guild_mgr.MakeGuildList("", outapp->size);
|
||||||
if(outapp->pBuffer == nullptr) {
|
if(outapp->pBuffer == nullptr) {
|
||||||
|
safe_delete(outapp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -175,6 +175,7 @@ void Client::SendGuildList() {
|
|||||||
outapp->pBuffer = guild_mgr.MakeGuildList(/*GetName()*/"", outapp->size);
|
outapp->pBuffer = guild_mgr.MakeGuildList(/*GetName()*/"", outapp->size);
|
||||||
if(outapp->pBuffer == nullptr) {
|
if(outapp->pBuffer == nullptr) {
|
||||||
LogGuilds("Unable to make guild list!");
|
LogGuilds("Unable to make guild list!");
|
||||||
|
safe_delete(outapp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user