UI: Ensure frontend event is removed on object deletion
This commit is contained in:
parent
82afc219f9
commit
f130e8755b
1 changed files with 2 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ void OBSBasicStats::closeEvent(QCloseEvent *event)
|
|||
|
||||
OBSBasicStats::~OBSBasicStats()
|
||||
{
|
||||
obs_frontend_remove_event_callback(OBSFrontendEvent, this);
|
||||
|
||||
delete shortcutFilter;
|
||||
os_cpu_usage_info_destroy(cpu_info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue