diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-01 03:31:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-01 03:32:48 +0300 |
commit | 12c49d05c655116529e8c08e7d4f6b40d186393a (patch) | |
tree | 6d0ee7a62eff36ed5c1d2524ed9455a0dc2effc7 /source | |
parent | bda7a333a39b89964b0b79999e04a7b4723c5647 (diff) |
Fix freed memory use w/ panel unregister
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c index 7d9f547ea0d..4af658da1aa 100644 --- a/source/blender/makesrna/intern/rna_ui.c +++ b/source/blender/makesrna/intern/rna_ui.c @@ -202,11 +202,11 @@ static void rna_Panel_unregister(Main *UNUSED(bmain), StructRNA *type) BLI_freelinkN(&pt->parent->children, link); } + WM_paneltype_remove(pt); + BLI_freelistN(&pt->children); BLI_freelinkN(&art->paneltypes, pt); - WM_paneltype_remove(pt); - /* update while blender is running */ WM_main_add_notifier(NC_WINDOW, NULL); } |