diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-04-05 08:34:41 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-04-05 08:34:41 +0400 |
commit | 5e77460a289795972eb3ed3d13455f33a09c0352 (patch) | |
tree | 6d17b9b593629d7bf6f53b98c9e9a211762dc470 /source/blender/python/api2_2x/Ipocurve.c | |
parent | 109d38a6d6887131a232fcf715bb768524eec4e1 (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.c | 2 |
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); } |