diff --git a/repos/gems/src/app/sculpt_manager/model/runtime_state.h b/repos/gems/src/app/sculpt_manager/model/runtime_state.h index 0fa978f3d8..5c6e9119ac 100644 --- a/repos/gems/src/app/sculpt_manager/model/runtime_state.h +++ b/repos/gems/src/app/sculpt_manager/model/runtime_state.h @@ -396,6 +396,12 @@ class Sculpt::Runtime_state : public Runtime_info void reset_abandoned_and_launched_children() { + /* + * Invalidate '_currently_constructed' pointer, which may point + * to a to-be-destructed 'Launched_child'. + */ + discard_construction(); + _abandoned_children.for_each([&] (Abandoned_child &child) { destroy(_alloc, &child); });