Blender Git Loki
Git Commits -> Revision 52f6392
Revision 52f6392 by Tamito Kajiyama (master) July 26, 2009, 20:20 (GMT) |
Second attempt to fix a null pointer reference in deallocators of built-in types (the first was in revision 21877). When an exception has raised within from the __init__ method of a user-defined class derived from a built-in type (e.g., UnaryPredicate0D and BinaryPredicate1D), some member variables of the base type are left uninitialized, leading to a null pointer reference in the "__dealloc__" function in the base type. To avoid this, pointer checking was added in the deallocators of those built-in types that can be used to define a subclass by a user. |
Commit Details:
Full Hash: 52f639277b527b97eb29f3f91e0f5899fd30d8a2
SVN Revision: 21937
Parent Commit: 69853d3
Lines Changed: +51, -27
27 Modified Paths:
/source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Interface0D.cpp (+1, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Interface1D.cpp (+1, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Iterator.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp (+1, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_StrokeShader.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Interface0D.cpp (+1, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Interface1D.cpp (+1, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Iterator.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp (+1, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_StrokeShader.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp (+2, -1) (Diff)