Removes memory leak on the "offset" feature

This commit is contained in:
Felipe Zimmerle
2017-01-22 23:41:54 -03:00
committed by Felipe Zimmerle
parent c1f11ab4e5
commit 17e5a63577
3 changed files with 25 additions and 31 deletions

View File

@@ -40,12 +40,12 @@ class Variable {
m_key(key),
m_value(),
m_dynamic_value(false),
m_dynamic(false) { }
m_dynamic(true) { }
Variable(const std::string *key, const std::string *value) :
m_key(key),
m_value(value),
m_dynamic_value(false),
m_dynamic(false) { }
m_dynamic(true) { }
~Variable() {
if (m_dynamic_value) {