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:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-04-21 01:20:33 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2009-04-21 01:20:33 +0400
commit2d0d06f642b661b084657c05ebb0c664f998a937 (patch)
treef08f660611fccfd3cd2be659a3440fa54c1c96de /source/gameengine/VideoTexture/Texture.cpp
parent6afaab654d6d9df31f6cb01e8e2c834ae79927fb (diff)
BGE VideoTexture: fix bug with VideoTexture.materialID() since recent commit.
Diffstat (limited to 'source/gameengine/VideoTexture/Texture.cpp')
-rw-r--r--source/gameengine/VideoTexture/Texture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/VideoTexture/Texture.cpp b/source/gameengine/VideoTexture/Texture.cpp
index 66c67023e38..fa941f9260e 100644
--- a/source/gameengine/VideoTexture/Texture.cpp
+++ b/source/gameengine/VideoTexture/Texture.cpp
@@ -163,7 +163,8 @@ void Texture_dealloc (Texture * self)
// release renderer
Py_XDECREF(self->m_source);
// close texture
- Texture_close(self);
+ PyObject* ret = Texture_close(self);
+ Py_DECREF(ret);
// release scaled image buffer
delete [] self->m_scaledImg;
// release object