| 41 | } |
| 42 | |
| 43 | DebugSession::~DebugSession() |
| 44 | { |
| 45 | for (auto it : stoppedDetails) { |
| 46 | if (it) { |
| 47 | delete it; |
| 48 | it = nullptr; |
| 49 | } |
| 50 | } |
| 51 | stoppedDetails.clear(); |
| 52 | |
| 53 | for (auto it : threads) { |
| 54 | if (it.second) { |
| 55 | delete it.second; |
| 56 | it.second = nullptr; |
| 57 | } |
| 58 | } |
| 59 | threads.clear(); |
| 60 | |
| 61 | dap::terminate(); |
| 62 | delete alertBox; |
| 63 | } |
| 64 | |
| 65 | const Capabilities &DebugSession::capabilities() const |
| 66 | { |