summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-22 14:17:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-22 14:17:32 +0200
commitace815b451242b13f492887b004d14337362ae58 (patch)
tree48b3063cc45449c4d5527f74cc576aa00babb434 /l10ntools
parent6e87f0bb75734e464bb0160dc00ab2fbe1a8fac3 (diff)
Fix memory leak in cfgex tool
Change-Id: Ic8c410a805fa06777c1a85de646df2dcd5b6506a
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/cfgmerge.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/l10ntools/inc/cfgmerge.hxx b/l10ntools/inc/cfgmerge.hxx
index b938a1139c3e..1eb5f55a2e58 100644
--- a/l10ntools/inc/cfgmerge.hxx
+++ b/l10ntools/inc/cfgmerge.hxx
@@ -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();
- maList.pop_back();
- return temp;
+ if (!maList.empty())
+ {
+ delete maList.back();
+ maList.pop_back();
+ }
}
CfgStackData *GetStackData();