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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-07-26 21:29:25 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-07-26 21:29:25 +0400
commit69853d3e409470aebda5732daf3e525231d317e6 (patch)
tree95dec7f903fc8244677558d5fd1f500cbecb7a00 /source/blender/freestyle/intern
parent730fb1021c8b189229625866dac0f6e83db6418c (diff)
Reverted the change in revision 21877 in Interface0D___dealloc__().
Diffstat (limited to 'source/blender/freestyle/intern')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Interface0D.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
index 89eb3600665..fb8c27c4205 100644
--- a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
@@ -189,7 +189,8 @@ int Interface0D___init__(BPy_Interface0D *self, PyObject *args, PyObject *kwds)
void Interface0D___dealloc__(BPy_Interface0D* self)
{
- delete self->if0D;
+ if( self->if0D->py_if0D )
+ delete self->if0D;
self->ob_type->tp_free((PyObject*)self);
}