Release modules on destruction
This commit is contained in:
parent
9f0663efa2
commit
f12a8dbe20
|
@ -77,6 +77,10 @@ KernelState::~KernelState() {
|
||||||
|
|
||||||
assert_true(shared_kernel_state_ == this);
|
assert_true(shared_kernel_state_ == this);
|
||||||
shared_kernel_state_ = nullptr;
|
shared_kernel_state_ = nullptr;
|
||||||
|
|
||||||
|
for (XUserModule* mod : user_modules_) {
|
||||||
|
mod->Release();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KernelState* KernelState::shared() { return shared_kernel_state_; }
|
KernelState* KernelState::shared() { return shared_kernel_state_; }
|
||||||
|
|
Loading…
Reference in New Issue