diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-14 16:29:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-14 16:29:55 +0400 |
commit | 08f0938434598b23d0dd1879f598e342a194cb63 (patch) | |
tree | 24534061675641b9efab5e69508ac9bde30b5efa /source/blender/makesrna/intern/rna_render.c | |
parent | 4bbccd39bc827e5d794bdbe987b4d48164e8d950 (diff) |
- registering new python classes runs the free functions on existing classes.
- print an error if RNA Structs are freed with a python pointer set to help with debugging leaks.
- fix for unlikely eternal loop in unit conversion.
Diffstat (limited to 'source/blender/makesrna/intern/rna_render.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_render.c b/source/blender/makesrna/intern/rna_render.c index 7268d560282..040284cb07b 100644 --- a/source/blender/makesrna/intern/rna_render.c +++ b/source/blender/makesrna/intern/rna_render.c @@ -106,6 +106,9 @@ static void rna_RenderEngine_unregister(const bContext *C, StructRNA *type) if(!et) return; + et->ext.free(et->ext.data); /* decref's the PyObject that the srna owns */ + RNA_struct_py_type_set(type, NULL); /* NULL the srna's value so RNA_struct_free wont complain of a leak */ + BLI_freelinkN(&R_engines, et); RNA_struct_free(&BLENDER_RNA, type); } |