[geany/geany] e4eace: Plug a memory leak
Colomban Wendling
git-noreply at xxxxx
Tue Sep 24 14:23:48 UTC 2013
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Tue, 24 Sep 2013 14:23:48 UTC
Commit: e4eacef82b58f202bca379d8b4ca4df72662b578
https://github.com/geany/geany/commit/e4eacef82b58f202bca379d8b4ca4df72662b578
Log Message:
-----------
Plug a memory leak
Thanks to Pavel Roschin for spotting it.
Modified Paths:
--------------
src/keybindings.c
Modified: src/keybindings.c
4 files changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -1453,7 +1453,7 @@ static gboolean cb_func_search_action(guint key_id)
on_find_document_usage1_activate(NULL, NULL); break;
case GEANY_KEYS_SEARCH_MARKALL:
{
- gchar *text = get_current_word_or_sel(doc, TRUE);
+ gchar *text = NULL;
gint pos = sci_get_current_position(sci);
/* clear existing search indicators instead if next to cursor */
@@ -1462,6 +1462,8 @@ static gboolean cb_func_search_action(guint key_id)
scintilla_send_message(sci, SCI_INDICATORVALUEAT,
GEANY_INDICATOR_SEARCH, MAX(pos - 1, 0)))
text = NULL;
+ else
+ text = get_current_word_or_sel(doc, TRUE);
if (sci_has_selection(sci))
search_mark_all(doc, text, SCFIND_MATCHCASE);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list