diff --git a/kernel/include/sortix/kernel/dtable.h b/kernel/include/sortix/kernel/dtable.h index 70ae49d4..8b8d7813 100644 --- a/kernel/include/sortix/kernel/dtable.h +++ b/kernel/include/sortix/kernel/dtable.h @@ -41,7 +41,7 @@ class DescriptorTable : public Refcountable { public: DescriptorTable(); - ~DescriptorTable(); + virtual ~DescriptorTable(); Ref Fork(); Ref Get(int index); int Allocate(Ref desc, int flags, int min_index = 0); diff --git a/kernel/include/sortix/kernel/mtable.h b/kernel/include/sortix/kernel/mtable.h index 0b0ccbc5..6ede7f62 100644 --- a/kernel/include/sortix/kernel/mtable.h +++ b/kernel/include/sortix/kernel/mtable.h @@ -45,7 +45,7 @@ class MountTable : public Refcountable { public: MountTable(); - ~MountTable(); + virtual ~MountTable(); Ref Fork(); bool AddMount(ino_t ino, dev_t dev, Ref inode);