Kaydet (Commit) ace815b4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix memory leak in cfgex tool

Change-Id: Ic8c410a805fa06777c1a85de646df2dcd5b6506a
üst 6e87f0bb
......@@ -74,13 +74,13 @@ public:
~CfgStack();
CfgStackData *Push(const OString &rTag, const OString &rId);
CfgStackData *Pop()
void Pop()
{
if (maList.empty())
return NULL;
CfgStackData* temp = maList.back();
if (!maList.empty())
{
delete maList.back();
maList.pop_back();
return temp;
}
}
CfgStackData *GetStackData();
......
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