SWDEV-425640 - An instantiated graphExec should retain a copy of every reference in the source graph

Change-Id: Idf6b224449ca642af2860b33dc739f51a6248e4c
Этот коммит содержится в:
Sourabh Betigeri
2024-02-26 14:22:07 -08:00
коммит произвёл Sourabh Betigeri
родитель 15a058cb60
Коммит 3fdd46ae59
2 изменённых файлов: 4 добавлений и 6 удалений
+4
Просмотреть файл
@@ -285,6 +285,10 @@ Graph* Graph::clone(std::unordered_map<Node, Node>& clonedNodes) const {
}
clonedNodes[node]->SetDependencies(clonedDependencies);
}
for (auto userObj : graphUserObj_) {
userObj->retain();
newGraph->graphUserObj_.insert(userObj);
}
return newGraph;
}