Fix some leaks (#863)

This commit is contained in:
Murat Seker
2020-07-12 09:22:05 +02:00
committed by GitHub
parent dd98e245fe
commit 69561aea9d
7 changed files with 23 additions and 14 deletions

View File

@@ -194,6 +194,7 @@ void HyperionIManager::handleFinished()
Info(_log,"Hyperion instance '%s' has been stopped", QSTRING_CSTR(_instanceTable->getNamebyIndex(instance)));
_runningInstances.remove(instance);
hyperion->thread()->deleteLater();
hyperion->deleteLater();
emit instanceStateChanged(InstanceState::H_STOPPED, instance);
emit change();

View File

@@ -22,9 +22,9 @@ PriorityMuxer::PriorityMuxer(int ledCount)
, _activeInputs()
, _lowestPriorityInfo()
, _sourceAutoSelectEnabled(true)
, _updateTimer(new QTimer())
, _timer(new QTimer())
, _blockTimer(new QTimer())
, _updateTimer(new QTimer(this))
, _timer(new QTimer(this))
, _blockTimer(new QTimer(this))
{
// init lowest priority info
_lowestPriorityInfo.priority = PriorityMuxer::LOWEST_PRIORITY;