aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/QueryResult.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-09-25 13:12:12 +0200
committerMachiavelli <none@none>2010-09-25 13:12:12 +0200
commit477b30a1adb6acb5e0f6df22061bf45f109204a3 (patch)
tree1859aa31cb4fe7a60c9ae5d1e6aad42f449d982e /src/server/shared/Database/QueryResult.cpp
parent0fa7d24637613c376586f575bc54337905ff109e (diff)
Core/DBLayer: Fix a memory leak in Field class, properly clear buffer before repopulating it.
Fixes many issues (from wrong subnames on NPCs to absent GO/Creature spawns) Thanks to Rat for helping find the issue --HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/QueryResult.cpp')
-rw-r--r--src/server/shared/Database/QueryResult.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/shared/Database/QueryResult.cpp b/src/server/shared/Database/QueryResult.cpp
index bd02e11385c..a887b1a9a36 100644
--- a/src/server/shared/Database/QueryResult.cpp
+++ b/src/server/shared/Database/QueryResult.cpp
@@ -162,7 +162,7 @@ bool ResultSet::NextRow()
}
for (uint32 i = 0; i < m_fieldCount; i++)
- m_currentRow[i].SetStructuredValue(row[i], m_fields[i].type, Field::SizeForType(&m_fields[i]));
+ m_currentRow[i].SetStructuredValue(row[i], m_fields[i].type);
return true;
}