Fix leak in Python BGE filter & image types

This commit is contained in:
Campbell Barton 2017-08-18 00:52:45 +10:00
parent 7a4696197d
commit ac28a4fba7
2 changed files with 2 additions and 0 deletions

@ -114,6 +114,7 @@ void Filter_dealloc(PyFilter *self)
delete self->m_filter; delete self->m_filter;
self->m_filter = NULL; self->m_filter = NULL;
} }
Py_TYPE((PyObject *)self)->tp_free((PyObject *)self);
} }

@ -427,6 +427,7 @@ void Image_dealloc(PyImage *self)
delete self->m_image; delete self->m_image;
self->m_image = NULL; self->m_image = NULL;
} }
Py_TYPE((PyObject *)self)->tp_free((PyObject *)self);
} }
// get image data // get image data