summaryrefslogtreecommitdiff
path: root/src/resources/db/questdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/questdb.cpp')
-rw-r--r--src/resources/db/questdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/db/questdb.cpp b/src/resources/db/questdb.cpp
index 93bcada6e..da05721b1 100644
--- a/src/resources/db/questdb.cpp
+++ b/src/resources/db/questdb.cpp
@@ -83,11 +83,12 @@ static void loadQuest(const int var,
{
if (!xmlTypeEqual(dataNode, XML_ELEMENT_NODE))
continue;
- const char *const data = reinterpret_cast<const char*>(
+ char *const data = reinterpret_cast<char*>(
XmlNodeGetContent(dataNode));
if (!data)
continue;
std::string str = translator->getStr(data);
+ XmlFree(data);
for (int f = 1; f < 100; f ++)
{