Fix leak in Python BGE filter & image types
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user