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-05-20 13:02:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-05-20 13:02:16 +0400
commitbd534f8df8a951cd3562c98ff0e51d10f6754c12 (patch)
treea594a37b778aee86ee2374059d51075a4230db55 /source/blender/python/api2_2x/sceneTimeLine.c
parent02893ff5ae59185e101b4a2cd7cce81974efd0ea (diff)
own bad error. calling scene.timeline would crash blender.
Diffstat (limited to 'source/blender/python/api2_2x/sceneTimeLine.c')
-rw-r--r--source/blender/python/api2_2x/sceneTimeLine.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/sceneTimeLine.c b/source/blender/python/api2_2x/sceneTimeLine.c
index 5c00b9f8925..0a68c63752c 100644
--- a/source/blender/python/api2_2x/sceneTimeLine.c
+++ b/source/blender/python/api2_2x/sceneTimeLine.c
@@ -82,6 +82,12 @@ static PyMethodDef BPy_TimeLine_methods[] = {
{NULL, NULL, 0, NULL}
};
+/*-----------------------dealloc----------------------------------------*/
+static void TimeLine_dealloc( BPy_TimeLine * self )
+{
+ PyObject_DEL( self );
+}
+
/*-----------------------getattr----------------------------------------*/
static PyObject *TimeLine_getattr (BPy_TimeLine *self, char *name) {
return Py_FindMethod( BPy_TimeLine_methods, ( PyObject * ) self, name );
@@ -114,7 +120,7 @@ PyTypeObject TimeLine_Type = {
sizeof (BPy_TimeLine), /* tp_basicsize */
0, /* tp_itemsize */
/* methods */
- NULL, /* tp_dealloc */
+ ( destructor ) TimeLine_dealloc, /* tp_dealloc */
(printfunc) 0, /* tp_print */
(getattrfunc) TimeLine_getattr, /* tp_getattr */
(setattrfunc) TimeLine_setattr, /* tp_setattr */