diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-05-21 23:42:11 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-05-21 23:42:11 +0400 |
commit | c4f6ac80df03aa236f8dbfe7dc92f6e06121cceb (patch) | |
tree | 4fb4a8c79ff85f21a3d894b9be122a4622a4f3f6 /source/blender/python/api2_2x/Pose.c | |
parent | 21bc08a0bb39638e13fa19109a22e2d9fb20579e (diff) |
=== Bugfix ===
Coverity bugfix (missing NULL check) and ref counting errors. (on module constants, so not really leaking, just not good.)
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index 2b4f67c9b8c..fe60b04b5ff 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -1236,11 +1236,11 @@ PyObject *Pose_Init(void) //Add CONSTANTS to the module PyModule_AddObject(module, "ROT", - EXPP_incr_ret(PyConstant_NewInt("ROT", POSE_ROT))); + PyConstant_NewInt("ROT", POSE_ROT)); PyModule_AddObject(module, "LOC", - EXPP_incr_ret(PyConstant_NewInt("LOC", POSE_LOC))); + PyConstant_NewInt("LOC", POSE_LOC)); PyModule_AddObject(module, "SIZE", - EXPP_incr_ret(PyConstant_NewInt("SIZE", POSE_SIZE))); + PyConstant_NewInt("SIZE", POSE_SIZE)); return module; } |