diff options
author | Anubisss <none@none> | 2009-12-30 20:24:18 +0100 |
---|---|---|
committer | Anubisss <none@none> | 2009-12-30 20:24:18 +0100 |
commit | bdd30a68659f03ba3fae4f11c2db7f470986531f (patch) | |
tree | 3b0ca1c52913ff798d2bbe9e4e8ea004696cd486 /src/bindings/scripts/system/system.cpp | |
parent | b757b7e201b5687e014fdae2afa785ed361c83d3 (diff) |
Fix 3 memleakz.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts/system/system.cpp')
-rw-r--r-- | src/bindings/scripts/system/system.cpp | 3 |
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); |