mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
MISC4: Fix ref count of VisualDataDistributor (harmless, currently unused)
This commit is contained in:
parent
3ed65eff8e
commit
9e32141a5f
@ -142,7 +142,12 @@ protected:
|
||||
}
|
||||
|
||||
if (inp) {
|
||||
int previousRefCount = inp->getRefCount();
|
||||
VisualProcessor<OutputDataType, OutputDataType>::distribute(inp);
|
||||
//inp is now shared through the distribute(), which overwrite the previous ref count,
|
||||
//so increment it properly.
|
||||
int distributeRefCount = inp->getRefCount();
|
||||
inp->setRefCount(previousRefCount + distributeRefCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user