mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix some leaks (#863)
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
|
||||
using namespace commandline;
|
||||
|
||||
Parser::~Parser()
|
||||
{
|
||||
qDeleteAll(_options);
|
||||
}
|
||||
|
||||
bool Parser::parse(const QStringList &arguments)
|
||||
{
|
||||
if (!_parser.parse(arguments))
|
||||
|
@@ -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();
|
||||
|
@@ -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;
|
||||
|
@@ -42,7 +42,7 @@ void LedDeviceFile::initFile(const QString &fileName)
|
||||
{
|
||||
if ( _file == nullptr )
|
||||
{
|
||||
_file = new QFile(fileName);
|
||||
_file = new QFile(fileName, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user