Add subclassing capability to struct trans

This commit is contained in:
matt335672
2022-02-14 09:14:22 +00:00
parent d5f99f41ac
commit 8f4860cb55
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -120,6 +120,12 @@ trans_delete(struct trans *self)
return;
}
/* Call the user-specified destructor if one exists */
if (self->extra_destructor != NULL)
{
self->extra_destructor(self);
}
free_stream(self->in_s);
free_stream(self->out_s);