aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
authorraczman <none@none>2009-05-13 14:06:33 +0200
committerraczman <none@none>2009-05-13 14:06:33 +0200
commitbfaaa8201e6887fedd2145d668f40a484a609dac (patch)
tree869eeca5c3f71d64d15e4eb28b2f4fad70f36fad /src/game/ObjectMgr.cpp
parent5748c36621f36a64cad29243dfe880291826059a (diff)
Possibly fixed more memory leaks in other places.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp6
1 files changed, 5 insertions, 1 deletions
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() );