Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesrna / intern / rna_render.c
index 19002d1229b0b1ba0631c2c340ec157288a1700e..725aa7853323b3e1ae91f9a4240031bbb1ef5721 100644 (file)
@@ -299,8 +299,8 @@ static void rna_RenderEngine_unregister(Main *UNUSED(bmain), StructRNA *type)
                return;
        
        RNA_struct_free_extension(type, &et->ext);
-       BLI_freelinkN(&R_engines, et);
        RNA_struct_free(&BLENDER_RNA, type);
+       BLI_freelinkN(&R_engines, et);
 }
 
 static StructRNA *rna_RenderEngine_register(Main *bmain, ReportList *reports, void *data, const char *identifier,