/claim #7478 /closes #7478
Description:
This PR resolves a crash that occurs when closing multiple profiles simultaneously.
The root cause was a race condition in the Host destructor, where weak pointers to command line objects (mActiveCommandLines) were being accessed after they were no longer valid.
The fix involves explicitly clearing the mActiveCommandLines container at the beginning of the Host destructor. This ensures that the resources are released in a safe order, preventing the crash.
Excellencedev
@Excellencedev
Mudlet
@Mudlet