- 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.
This commit is contained in:
2009-08-14 12:29:55 +00:00
parent 4bbccd39bc
commit 08f0938434
8 changed files with 118 additions and 30 deletions

View File

@@ -270,10 +270,14 @@ void BPY_start_python( int argc, char **argv )
void BPY_end_python( void )
{
fprintf(stderr, "Ending Python!\n");
PyGILState_Ensure(); /* finalizing, no need to grab the state */
// free other python data.
//BPY_rna_free_types();
pyrna_free_types();
/* clear all python data from structs */
Py_Finalize( );
@@ -292,6 +296,8 @@ void BPY_end_python( void )
printf("\n");
fprintf(stderr, "Ending Python Done!\n");
#endif
}