forked from bartvdbraak/blender
Fix leak in Python BGE filter & image types
This commit is contained in:
parent
7a4696197d
commit
ac28a4fba7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user