Skip to content

Commit

Permalink
Fix memory leak during CS dashboard gathering
Browse files Browse the repository at this point in the history
  • Loading branch information
basyskom-jvoe authored and khaexy committed Mar 20, 2024
1 parent 8f2919c commit 4bde83c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,11 @@ void BackEnd::findCompanionSpecObjects()

QObject::connect(
node, &QOpcUaNode::browseFinished, this,
[this, entryPoint,
permittedSubtypes](const QList<QOpcUaReferenceDescription> &children,
QOpcUa::UaStatusCode statusCode) {
[this, entryPoint, permittedSubtypes,
node](const QList<QOpcUaReferenceDescription> &children,
QOpcUa::UaStatusCode statusCode) {
Q_UNUSED(statusCode)
node->deleteLater();
for (const auto &child : children) {
if (permittedSubtypes.contains(
child.typeDefinition().nodeId())) {
Expand Down

0 comments on commit 4bde83c

Please sign in to comment.