Fix memory leak in Context.temp_override

Add missing check as the context override dict may have been copied
since it was assigned, also initialize the context manager with
PyType_Ready, while it didn't cause any errors - it's expected
that all types are initialized.
This commit is contained in:
2022-04-26 16:48:34 +10:00
parent e0e737b72b
commit 2492d9852b
3 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ extern "C" {
extern PyMethodDef BPY_rna_context_temp_override_method_def;
void bpy_rna_context_types_init(void);
#ifdef __cplusplus
}
#endif