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>2007-04-02 06:45:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-02 06:45:57 +0400
commitc0fef58e48acc9bf79518ef5cb53ccac063947cc (patch)
tree262734c369e6f18ccea91114c16fba31363b3128 /source/blender/python/api2_2x/charRGBA.c
parentdca213525a018b688216e785eaede4508332bf1d (diff)
PyAPI
reverting python dealloc function removal, caused Save Theme to crash.
Diffstat (limited to 'source/blender/python/api2_2x/charRGBA.c')
-rw-r--r--source/blender/python/api2_2x/charRGBA.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/charRGBA.c b/source/blender/python/api2_2x/charRGBA.c
index 35ff546d0d5..64c3902c491 100644
--- a/source/blender/python/api2_2x/charRGBA.c
+++ b/source/blender/python/api2_2x/charRGBA.c
@@ -77,6 +77,11 @@ static PySequenceMethods charRGBAAsSequence = {
( intintobjargproc ) charRGBAAssSlice, /* sq_ass_slice */
};
+static void charRGBA_dealloc( BPy_charRGBA * self )
+{
+ PyObject_DEL( self );
+}
+
/*****************************************************************************/
/* Python charRGBA_Type structure definition: */
/*****************************************************************************/
@@ -87,7 +92,7 @@ PyTypeObject charRGBA_Type = {
sizeof( BPy_charRGBA ), /* tp_basicsize */
0, /* tp_itemsize */
/* methods */
- NULL, /* tp_dealloc */
+ ( destructor ) charRGBA_dealloc, /* tp_dealloc */
0, /* tp_print */
( getattrfunc ) charRGBA_getAttr, /* tp_getattr */
( setattrfunc ) charRGBA_setAttr, /* tp_setattr */