[geany/geany-plugins] fa7e9f: pohelper: Fix leaks retrieving file stats
Colomban Wendling
git-noreply at xxxxx
Mon Feb 16 22:59:20 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Tue, 22 Apr 2014 16:22:13 UTC
Commit: fa7e9f69a33cc5e4a9ad3de3256e7eee252ea472
https://github.com/geany/geany-plugins/commit/fa7e9f69a33cc5e4a9ad3de3256e7eee252ea472
Log Message:
-----------
pohelper: Fix leaks retrieving file stats
Modified Paths:
--------------
pohelper/src/gph-plugin.c
Modified: pohelper/src/gph-plugin.c
3 lines changed, 1 insertions(+), 2 deletions(-)
===================================================================
@@ -1076,7 +1076,7 @@ get_flags_at (GeanyDocument *doc,
gint line = find_flags_line_at (doc, pos);
if (line >= 0) {
- flags = g_ptr_array_new ();
+ flags = g_ptr_array_new_with_free_func (g_free);
parse_flags_line (doc->editor->sci, line, flags);
}
@@ -1464,7 +1464,6 @@ on_kb_show_stats (guint key_id)
if (flags) {
fuzzy += ! toggle_flag (flags, "fuzzy");
- g_ptr_array_foreach (flags, (GFunc) g_free, NULL);
g_ptr_array_free (flags, TRUE);
}
}
--------------
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