mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/TicketMgr: Remove a memory leak in RemoveTicket. Spotted by Subv
This commit is contained in:
@@ -301,6 +301,7 @@ void TicketMgr::RemoveTicket(uint32 ticketId)
|
||||
{
|
||||
ticket->DeleteFromDB();
|
||||
_ticketList.erase(ticketId);
|
||||
delete ticket;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user