[geany/geany-plugins] faa0e4: projectorganizer: properly release pattern spec

Jiří Techet git-noreply at xxxxx
Tue Jun 30 11:18:16 UTC 2015


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Tue, 30 Jun 2015 11:18:16 UTC
Commit:      faa0e4abacf50fa3ef11ec37207645b4f0c8a7d1
             https://github.com/geany/geany-plugins/commit/faa0e4abacf50fa3ef11ec37207645b4f0c8a7d1

Log Message:
-----------
projectorganizer: properly release pattern spec


Modified Paths:
--------------
    projectorganizer/src/prjorg-sidebar.c

Modified: projectorganizer/src/prjorg-sidebar.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -423,6 +423,7 @@ static void find_file(GtkTreeIter *iter)
 		msgwin_switch_tab(MSG_MESSAGE, TRUE);
 		g_free(utf8_base_path);
 		g_free(locale_base_path);
+		g_pattern_spec_free(pattern);
 	}
 
 	g_free(pattern_str);
@@ -627,7 +628,7 @@ static void find_tags(const gchar *name, gboolean declaration, gboolean case_sen
 	msgwin_switch_tab(MSG_MESSAGE, TRUE);
 
 	g_free(name_case);
-	g_free(pspec);
+	g_pattern_spec_free(pspec);
 	g_free(utf8_base_path);
 	g_free(locale_base_path);
 }



--------------
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