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:
authorCampbell Barton <ideasman42@gmail.com>2018-10-01 03:31:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-01 03:32:48 +0300
commit12c49d05c655116529e8c08e7d4f6b40d186393a (patch)
tree6d0ee7a62eff36ed5c1d2524ed9455a0dc2effc7 /source/blender/makesrna/intern/rna_ui.c
parentbda7a333a39b89964b0b79999e04a7b4723c5647 (diff)
Fix freed memory use w/ panel unregister
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui.c')
-rw-r--r--source/blender/makesrna/intern/rna_ui.c4
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);
}