mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add asserts to explode the process earliest possible moment
This commit is contained in:
parent
48a3adc8cf
commit
235da004cd
1 changed files with 6 additions and 0 deletions
|
@ -234,6 +234,12 @@ Plugin::~Plugin()
|
|||
this->callbacks.clear();
|
||||
lua_close(this->state_);
|
||||
}
|
||||
assert(this->ownedCommands.empty() &&
|
||||
"This must be empty or destructor of sol::protected_function would "
|
||||
"explode malloc structures later");
|
||||
assert(this->callbacks.empty() &&
|
||||
"This must be empty or destructor of sol::protected_function would "
|
||||
"explode malloc structures later");
|
||||
}
|
||||
int Plugin::addTimeout(QTimer *timer)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue