Core/AH: Fix memory leak
Fix memory leak in Auction House when creating an auction with stackable items and a stack of the same amount in the inventory. Leak added in 15a2acfb52 .
This commit is contained in:
1 parent
f1a82a578b
commit
b8908606fc
1 file changed
+1
@@ -332,6 +332,7 @@ void WorldSession::HandleAuctionSellItem(WorldPacket& recvData)
|
||||
item2->DeleteFromInventoryDB(trans);
|
||||
item2->DeleteFromDB(trans);
|
||||
CharacterDatabase.CommitTransaction(trans);
|
||||
delete item2;
|
||||
}
|
||||
else // Item stack count is bigger than required count, update item stack count and save to database - cloned item will be used for auction
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user