Skip to content

Commit 7691724

Browse files
committed
fix: Avoid manually freeing BaseTransition objects within BaseStage
Do not delete BaseTransition objects because the raw pointers are now treated as non-owning (the smart pointers in GraphicsObjects actually store the BaseTransition instances).
1 parent 160aebe commit 7691724

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/framework/BaseStage.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ namespace Framework {
5353
}
5454

5555
void BaseStage::clear_transition() {
56-
if (transition != nullptr) {
57-
delete transition;
58-
transition = nullptr;
59-
}
56+
// Do not actually delete transition because this raw pointer is non-owning
57+
transition = nullptr;
6058
}
6159
}

0 commit comments

Comments
 (0)