diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-07-19 20:37:55 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-07-19 20:37:55 +0400 |
commit | 47fddb50c5aabfdebb88025367e11b6792d32f2b (patch) | |
tree | bbbd3c15d3a68def5edffc1215791778c5eeefa6 /source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | |
parent | ef11c4e8e744cbd64895f27a1f26636cc5c2b047 (diff) |
Fixed uninitialized pointers in Interface0DIterator instances returned by
the castToInterface0DIterator method.
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp index d649a70e72f..686781ee22e 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp @@ -151,10 +151,7 @@ PyObject * CurvePointIterator_u( BPy_CurvePointIterator *self ) { } PyObject * CurvePointIterator_castToInterface0DIterator( BPy_CurvePointIterator *self ) { - PyObject *py_if0D_it = Interface0DIterator_Type.tp_new( &Interface0DIterator_Type, 0, 0 ); - ((BPy_Interface0DIterator *) py_if0D_it)->if0D_it = new Interface0DIterator( self->cp_it->castToInterface0DIterator() ); - - return py_if0D_it; + return BPy_Interface0DIterator_from_Interface0DIterator( self->cp_it->castToInterface0DIterator() ); } PyObject * CurvePointIterator_getObject(BPy_CurvePointIterator *self) { |