aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/system/system.cpp
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-12-30 20:24:18 +0100
committerAnubisss <none@none>2009-12-30 20:24:18 +0100
commitbdd30a68659f03ba3fae4f11c2db7f470986531f (patch)
tree3b0ca1c52913ff798d2bbe9e4e8ea004696cd486 /src/bindings/scripts/system/system.cpp
parentb757b7e201b5687e014fdae2afa785ed361c83d3 (diff)
Fix 3 memleakz.
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts/system/system.cpp')
-rw-r--r--src/bindings/scripts/system/system.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bindings/scripts/system/system.cpp b/src/bindings/scripts/system/system.cpp
index 4ed51825262..bf2cf65bfcb 100644
--- a/src/bindings/scripts/system/system.cpp
+++ b/src/bindings/scripts/system/system.cpp
@@ -47,6 +47,7 @@ void SystemMgr::LoadVersion()
outstring_log("TSCR: Database version is: %s", pFields[0].GetString());
outstring_log("");
+ delete pResult;
}
else
{
@@ -108,6 +109,7 @@ void SystemMgr::LoadScriptTexts()
m_mTextDataMap[iId] = pTemp;
++uiCount;
} while (pResult->NextRow());
+ delete pResult;
outstring_log("");
outstring_log(">> Loaded %u additional Script Texts data.", uiCount);
@@ -174,6 +176,7 @@ void SystemMgr::LoadScriptTextsCustom()
m_mTextDataMap[iId] = pTemp;
++uiCount;
} while (pResult->NextRow());
+ delete pResult;
outstring_log("");
outstring_log(">> Loaded %u additional Custom Texts data.", uiCount);