[Bf-blender-cvs] [5e091de0dc6] blender2.8: Fix memory leak in workspace menu

Campbell Barton noreply at git.blender.org
Tue Oct 30 00:59:31 CET 2018


Commit: 5e091de0dc6be820a24bc9767107a809568e4b9f
Author: Campbell Barton
Date:   Tue Oct 30 10:57:46 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB5e091de0dc6be820a24bc9767107a809568e4b9f

Fix memory leak in workspace menu

===================================================================

M	source/blender/editors/screen/workspace_edit.c

===================================================================

diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c
index a6a85a0f201..ea7ddd85852 100644
--- a/source/blender/editors/screen/workspace_edit.c
+++ b/source/blender/editors/screen/workspace_edit.c
@@ -517,7 +517,7 @@ static int workspace_add_invoke(bContext *C, wmOperator *op, const wmEvent *UNUS
 		BLI_path_to_display_name(display_name, sizeof(display_name), template);
 
 		/* Steals ownership of link data string. */
-		uiItemMenuF(layout, display_name, ICON_NONE, workspace_add_menu, template);
+		uiItemMenuFN(layout, display_name, ICON_NONE, workspace_add_menu, template);
 	}
 
 	BLI_freelistN(&templates);



More information about the Bf-blender-cvs mailing list