[Bf-blender-cvs] [7e3c954bea8] blender2.8: Fix memory leak in drivers pover

Antonioya noreply at git.blender.org
Mon Oct 22 18:58:28 CEST 2018


Commit: 7e3c954bea87f080acf37709e6a200891c638430
Author: Antonioya
Date:   Mon Oct 22 18:58:07 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB7e3c954bea87f080acf37709e6a200891c638430

Fix memory leak in drivers pover

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

M	source/blender/editors/space_graph/graph_buttons.c

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

diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c
index 2b114cd326b..2f0b6faabe4 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -1197,6 +1197,7 @@ void graph_buttons_register(ARegionType *art)
 	strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
 	pt->draw = graph_panel_drivers_popover;
 	pt->poll = graph_panel_drivers_popover_poll;
+	BLI_addtail(&art->paneltypes, pt);
 	WM_paneltype_add(pt); /* This panel isn't used in this region. Add explicitly to global list (so popovers work). */
 
 	pt = MEM_callocN(sizeof(PanelType), "spacetype graph panel modifiers");



More information about the Bf-blender-cvs mailing list