UI: Ensure frontend event is removed on object deletion

This commit is contained in:
jp9000 2019-05-23 23:53:36 -07:00
parent 82afc219f9
commit f130e8755b

View File

@ -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);
}