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

Change-Id: Idf6b224449ca642af2860b33dc739f51a6248e4c
This commit is contained in:
Sourabh Betigeri
2024-02-26 14:22:07 -08:00
کامیت شده توسط Sourabh Betigeri
والد 15a058cb60
کامیت 3fdd46ae59
2فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
@@ -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;
}