From 0e6f8e3e25d9c48501c12cdb56bc78868b568ff5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Oct 2012 10:33:57 +0000 Subject: 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. --- source/blender/windowmanager/intern/wm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager/intern/wm.c') 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 -- cgit v1.2.3