Kaydet (Commit) 07679362 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#836 fix leak

Change-Id: Ifd818cdf81516bd449db14bb1e84ed508e4b7d96
üst 7e9857c2
......@@ -194,9 +194,9 @@ void LwpFormulaInfo::ReadExpression()
case TK_MAXIMUM:
case TK_AVERAGE:
{
LwpFormulaFunc* pFunc = new LwpFormulaFunc(TokenType);
ReadArguments(*pFunc);
m_aStack.push_back(pFunc);
std::unique_ptr<LwpFormulaFunc> xFunc(new LwpFormulaFunc(TokenType));
ReadArguments(*xFunc);
m_aStack.push_back(xFunc.release());
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment