From bfaaa8201e6887fedd2145d668f40a484a609dac Mon Sep 17 00:00:00 2001 From: raczman Date: Wed, 13 May 2009 14:06:33 +0200 Subject: Possibly fixed more memory leaks in other places. --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/ObjectMgr.cpp') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index c948ad9d073..227b0f90f28 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -4124,7 +4124,11 @@ void ObjectMgr::LoadGossipText() pGText->Options[i].Emotes[2]._Emote = fields[cic++].GetUInt32(); } - if ( !pGText->Text_ID ) continue; + if ( !pGText->Text_ID ){ + delete pGText; + continue; + } + AddGossipText( pGText ); } while( result->NextRow() ); -- cgit v1.2.3