Branch: refs/heads/build-exec Author: Nick Treleaven n@trelsoft.com Committer: Nick Treleaven n@trelsoft.com Date: Sat, 05 Oct 2019 11:31:09 UTC Commit: f24d43e7d288a400ac7705d9b77c0c26d33762b5 https://github.com/geany/geany/commit/f24d43e7d288a400ac7705d9b77c0c26d33762...
Log Message: ----------- Call build_remove_menu_item instead of manually clearing GeanyBuildCommand
Modified Paths: -------------- src/build.c src/project.c
Modified: src/build.c 9 lines changed, 0 insertions(+), 9 deletions(-) =================================================================== @@ -2709,15 +2709,6 @@ static void on_project_close(void) { /* remove project regexen */ SETPTR(regex_proj, NULL); - - guint n = build_groups_count[GEANY_GBG_EXEC_IND]; - for (guint i = 0; i < n; i++) - { - g_free(exec_proj[i].label); - g_free(exec_proj[i].command); - g_free(exec_proj[i].working_dir); - } - memset(exec_proj, 0, sizeof(GeanyBuildCommand) * n); }
Modified: src/project.c 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -443,6 +443,7 @@ static void destroy_project(gboolean open_default) /* remove project non filetype build menu items */ build_remove_menu_item(GEANY_BCS_PROJ, GEANY_GBG_NON_FT, -1); build_remove_menu_item(GEANY_BCS_PROJ, GEANY_GBG_EXEC, -1); + build_remove_menu_item(GEANY_BCS_PROJ, GEANY_GBG_EXEC_IND, -1);
g_free(app->project->name); g_free(app->project->description);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).