summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-02 20:26:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-02 20:26:00 +0100
commit3ec4fedc6a3d96b0625d274d9542dc787949231f (patch)
tree0e8517800975e8b6a0fd975a0b333b0a6aa682ee /lingucomponent
parent983419f97d55550b89d42d388c3081c39a58928d (diff)
CID#983035 fix potential memleak
Change-Id: If41d78ce424e85390c7a92eaa36f912c43eef390
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 7e1a1c50d2e6..d68fd25fae31 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -476,9 +476,10 @@ Reference< XSpellAlternatives >
OUString cvtwrd(suglst[ii],strlen(suglst[ii]),eEnc);
pStr[numsug + ii] = cvtwrd;
}
- pMS->free_list(&suglst, count);
numsug += count;
}
+
+ pMS->free_list(&suglst, count);
}
}