- 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:
@@ -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
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user