Add deallocator functions to all classes

This commit is contained in:
John J. Camilleri
2021-09-26 15:45:34 +02:00
parent 1fce5144f8
commit 28bb236248
3 changed files with 108 additions and 35 deletions

View File

@@ -15,7 +15,7 @@ PGF_dealloc(PGFObject *self)
{
if (self->db != NULL && self->revision != 0)
pgf_free_revision(self->db, self->revision);
Py_TYPE(self)->tp_free((PyObject *)self);
Py_TYPE(self)->tp_free(self);
}
typedef struct {