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:
authorKen Hughes <khughes@pacific.edu>2007-04-05 08:34:41 +0400
committerKen Hughes <khughes@pacific.edu>2007-04-05 08:34:41 +0400
commit5e77460a289795972eb3ed3d13455f33a09c0352 (patch)
tree6d17b9b593629d7bf6f53b98c9e9a211762dc470 /source/blender/python/api2_2x/Ipocurve.c
parent109d38a6d6887131a232fcf715bb768524eec4e1 (diff)
Python API
---------- Fix memleak caused by missing Py_DECREFs (good catch, Campbell).
Diffstat (limited to 'source/blender/python/api2_2x/Ipocurve.c')
-rw-r--r--source/blender/python/api2_2x/Ipocurve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c
index 1d9477c9802..29ccb142f9a 100644
--- a/source/blender/python/api2_2x/Ipocurve.c
+++ b/source/blender/python/api2_2x/Ipocurve.c
@@ -533,7 +533,9 @@ static PyObject *IpoCurve_append( C_IpoCurve * self, PyObject * args )
"expected tuple of floats" );
x = (float)PyFloat_AsDouble( xobj );
+ Py_DECREF( xobj );
y = (float)PyFloat_AsDouble( yobj );
+ Py_DECREF( yobj );
insert_vert_ipo( icu, x, y);
}