mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
Fix potential memory leaks (clang-tidy)
This commit is contained in:
@@ -3171,6 +3171,7 @@ void command_equipitem(Client *c, const Seperator *sep)
|
||||
if (partialmove) { // remove this con check if someone can figure out removing charges from cursor stack issue below
|
||||
// mi->number_in_stack is always from_inst->GetCharges() when partialmove is false
|
||||
c->Message(13, "Error: Partial stack added to existing stack exceeds allowable stacksize");
|
||||
safe_delete(outapp);
|
||||
return;
|
||||
}
|
||||
else if(c->SwapItem(mi)) {
|
||||
|
||||
Reference in New Issue
Block a user