Fix freed memory use w/ panel unregister

This commit is contained in:
2018-10-01 10:31:24 +10:00
parent bda7a333a3
commit 12c49d05c6

View File

@@ -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);
}