diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-18 17:49:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-18 17:49:31 +0300 |
commit | f47aec78c9dc7a74f61b43009a5e1bcc7f190596 (patch) | |
tree | 3a87d9bcf6a2854788be9616b061f4a8d320823e /source/blender/python/BPY_interface.c | |
parent | b10726a2ad110e4ca710d047a3f737cfa18131ef (diff) |
fix for [#7962] anomalous mem usage with pydrivers.py scripts
Diffstat (limited to 'source/blender/python/BPY_interface.c')
-rw-r--r-- | source/blender/python/BPY_interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index a3c4f9d095e..1f028e49070 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -2025,6 +2025,7 @@ float BPY_pydriver_eval(IpoDriver *driver) } result = ( float )PyFloat_AsDouble( retval ); + Py_DECREF(retval); if (result == -1 && PyErr_Occurred()) { result = pydriver_error(driver); |