[geany/geany] f24d43: Call build_remove_menu_item instead of manually clearing GeanyBuildCommand

Nick Treleaven git-noreply at xxxxx
Sat Oct 5 11:31:09 UTC 2019


Branch:      refs/heads/build-exec
Author:      Nick Treleaven <n at trelsoft.com>
Committer:   Nick Treleaven <n at trelsoft.com>
Date:        Sat, 05 Oct 2019 11:31:09 UTC
Commit:      f24d43e7d288a400ac7705d9b77c0c26d33762b5
             https://github.com/geany/geany/commit/f24d43e7d288a400ac7705d9b77c0c26d33762b5

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


More information about the Commits mailing list