Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-26 14:33:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-26 14:33:57 +0400
commit0e6f8e3e25d9c48501c12cdb56bc78868b568ff5 (patch)
tree8633e1f31c844764a475d403a6d976e6c691dd22 /source/blender/windowmanager/intern/wm.c
parent6cc79fc3d0c55294d5e47642aae75348922d59c2 (diff)
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.
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r--source/blender/windowmanager/intern/wm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index a34d294461c..fa00ec63b31 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -78,7 +78,7 @@ void WM_operator_free(wmOperator *op)
if (op->py_instance) {
/* do this first in case there are any __del__ functions or
* similar that use properties */
- BPY_DECREF(op->py_instance);
+ BPY_RNA_DECREF_INVALIDATE(op->py_instance);
}
#endif