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:
authorStephen Swaney <sswaney@centurytel.net>2006-01-16 20:55:03 +0300
committerStephen Swaney <sswaney@centurytel.net>2006-01-16 20:55:03 +0300
commit14cc1192a34869e09f1a790bee39af61e60c01a4 (patch)
treea3e5738e1665ca35e6d64be535025701ec103a9e /source/blender/python/BPY_interface.c
parentc5819fe03fd3a199527ec4d5f3f2a52dafd3d9bb (diff)
clean up some warnings in bpy code
Diffstat (limited to 'source/blender/python/BPY_interface.c')
-rw-r--r--source/blender/python/BPY_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c
index 3cdc0de4f52..529d428692b 100644
--- a/source/blender/python/BPY_interface.c
+++ b/source/blender/python/BPY_interface.c
@@ -1706,8 +1706,9 @@ static PyObject *reimportText( PyObject *module )
/* if previously compiled, free the object */
/* (can't see how could be NULL, but check just in case) */
- if( text->compiled )
+ if( text->compiled ){
Py_DECREF( (PyObject *)text->compiled );
+ }
/* compile the buffer */
buf = txt_to_buf( text );