1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-08-02 22:12:26 -04:00

Merge pull request #744 from srcejon/pipes

Fix crash in pipe garbage collection
This commit is contained in:
Edouard Griffiths 2021-01-08 17:51:55 +01:00 committed by GitHub
commit e61fffbd28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -121,6 +121,7 @@ public:
QList<Consumer*>& consumers = cIt.value(); QList<Consumer*>& consumers = cIt.value();
for (int i = 0; i < consumers.size(); i++) { for (int i = 0; i < consumers.size(); i++) {
if (existsConsumer(consumers[i]))
sendMessageToConsumer(m_elements->operator[](producerKey)[i], producerKey, consumers[i]); sendMessageToConsumer(m_elements->operator[](producerKey)[i], producerKey, consumers[i]);
} }
} }

View File

@ -59,7 +59,7 @@ public:
} }
else else
{ {
typeId++; typeId = m_typeCount++;
m_typeIds.insert(type, typeId); m_typeIds.insert(type, typeId);
} }