Fix potential crash closing Blender with persistent data option enabled

Found by address sanitizer.
This commit is contained in:
Brecht Van Lommel 2020-11-09 18:37:29 +01:00
parent ec6a9322e8
commit cc5294bd91
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ static void rna_RenderEngine_unregister(Main *bmain, StructRNA *type)
return;
}
RE_FreeAllPersistentData();
RNA_struct_free_extension(type, &et->rna_ext);
RNA_struct_free(&BLENDER_RNA, type);
BLI_freelinkN(&R_engines, et);