fix for crash when a python operator or render engine was freed in the C code and then referenced from python.

now further access in python gives an exception at the line when the freed data is accessed.
This commit is contained in:
2012-10-26 10:33:57 +00:00
parent 6cc79fc3d0
commit 0e6f8e3e25
6 changed files with 17 additions and 5 deletions

View File

@@ -80,6 +80,7 @@ int BPY_button_exec(struct bContext *C, const char *expr, double *value, const
int BPY_string_exec(struct bContext *C, const char *expr);
void BPY_DECREF(void *pyob_ptr); /* Py_DECREF() */
void BPY_RNA_DECREF_INVALIDATE(void *pyob_ptr);
int BPY_context_member_get(struct bContext *C, const char *member, struct bContextDataResult *result);
void BPY_context_set(struct bContext *C);
void BPY_context_update(struct bContext *C);