Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-10-22 19:58:07 +0300
committerAntonioya <blendergit@gmail.com>2018-10-22 19:58:07 +0300
commit7e3c954bea87f080acf37709e6a200891c638430 (patch)
tree7b73c54746b76d4be695c5a4a77d7f0be81903e1 /source/blender/editors/space_graph
parente010d5e3b1b2110afd83c37d321b358692a478a8 (diff)
Fix memory leak in drivers pover
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c1
1 files changed, 1 insertions, 0 deletions
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");