UI: Ensure frontend event is removed on object deletion
This commit is contained in:
parent
82afc219f9
commit
f130e8755b
@ -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…
x
Reference in New Issue
Block a user