[Bf-blender-cvs] [ac28a4fba71] master: Fix leak in Python BGE filter & image types
Campbell Barton
noreply at git.blender.org
Thu Aug 17 16:59:11 CEST 2017
Commit: ac28a4fba7183b2eb6ac6641c80d20587be58a1a
Author: Campbell Barton
Date: Fri Aug 18 00:52:45 2017 +1000
Branches: master
https://developer.blender.org/rBac28a4fba7183b2eb6ac6641c80d20587be58a1a
Fix leak in Python BGE filter & image types
===================================================================
M source/gameengine/VideoTexture/FilterBase.cpp
M source/gameengine/VideoTexture/ImageBase.cpp
===================================================================
diff --git a/source/gameengine/VideoTexture/FilterBase.cpp b/source/gameengine/VideoTexture/FilterBase.cpp
index 5717a1edbcb..b41a2095890 100644
--- a/source/gameengine/VideoTexture/FilterBase.cpp
+++ b/source/gameengine/VideoTexture/FilterBase.cpp
@@ -114,6 +114,7 @@ void Filter_dealloc(PyFilter *self)
delete self->m_filter;
self->m_filter = NULL;
}
+ Py_TYPE((PyObject *)self)->tp_free((PyObject *)self);
}
diff --git a/source/gameengine/VideoTexture/ImageBase.cpp b/source/gameengine/VideoTexture/ImageBase.cpp
index b91a312a5d7..a547d2a7a85 100644
--- a/source/gameengine/VideoTexture/ImageBase.cpp
+++ b/source/gameengine/VideoTexture/ImageBase.cpp
@@ -427,6 +427,7 @@ void Image_dealloc(PyImage *self)
delete self->m_image;
self->m_image = NULL;
}
+ Py_TYPE((PyObject *)self)->tp_free((PyObject *)self);
}
// get image data
More information about the Bf-blender-cvs
mailing list