[geany/geany-plugins] 50e84c: Merge pull request #480 from philippwiesemann/fix-spellcheck-dup-leak
Enrico Tröger
git-noreply at xxxxx
Sun Aug 28 17:42:08 UTC 2016
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: GitHub <noreply at github.com>
Date: Sun, 28 Aug 2016 17:42:08 UTC
Commit: 50e84cd7056c9099bc13f2f75ee8635cff12e461
https://github.com/geany/geany-plugins/commit/50e84cd7056c9099bc13f2f75ee8635cff12e461
Log Message:
-----------
Merge pull request #480 from philippwiesemann/fix-spellcheck-dup-leak
spellcheck: Fix memory leak on duplicate dictionaries
Modified Paths:
--------------
spellcheck/src/speller.c
Modified: spellcheck/src/speller.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -388,7 +388,10 @@ static void add_dict_array(const gchar* const lang_tag, const gchar* const provi
for (i = 0; i < sc_info->dicts->len; i++)
{
if (utils_str_equal(g_ptr_array_index(sc_info->dicts, i), result))
+ {
+ g_free(result);
return;
+ }
}
g_ptr_array_add(sc_info->dicts, result);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list