Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 19 Oct 2014 10:58:46 UTC Commit: c26d40e501f706157e4943e94e86b185a4f44040 https://github.com/geany/geany-plugins/commit/c26d40e501f706157e4943e94e86b1...
Log Message: ----------- geanyctags: Fix compilation on Windows
Thanks to Enrico for the pain of testing on Windows.
Modified Paths: -------------- geanyctags/src/geanyctags.c
Modified: geanyctags/src/geanyctags.c 3 lines changed, 1 insertions(+), 2 deletions(-) =================================================================== @@ -35,7 +35,6 @@ #include <sys/stat.h> #include <unistd.h> #include <sys/types.h> -#include <sys/wait.h> #include <signal.h>
@@ -203,6 +202,7 @@ on_generate_tags(GtkMenuItem *menuitem, gpointer user_data) cmd = g_strconcat(find_string, " | ctags --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -L - -f ", tag_filename, NULL); + g_free(find_string); #else /* We don't have find and | on windows, generate tags for all files in the project (-R recursively) */ @@ -218,7 +218,6 @@ on_generate_tags(GtkMenuItem *menuitem, gpointer user_data) spawn_cmd(cmd, prj->base_path);
g_free(cmd); - g_free(find_string); g_free(tag_filename); } }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org