| 116 | } |
| 117 | |
| 118 | PhysicsDirect::~PhysicsDirect() |
| 119 | { |
| 120 | for (int i = 0; i < m_data->m_profileTimingStringArray.size(); i++) |
| 121 | { |
| 122 | std::string** str = m_data->m_profileTimingStringArray.getAtIndex(i); |
| 123 | if (str) |
| 124 | { |
| 125 | delete *str; |
| 126 | } |
| 127 | } |
| 128 | m_data->m_profileTimingStringArray.clear(); |
| 129 | |
| 130 | if (m_data->m_commandProcessor->isConnected()) |
| 131 | { |
| 132 | m_data->m_commandProcessor->disconnect(); |
| 133 | } |
| 134 | if (m_data->m_ownsCommandProcessor) |
| 135 | { |
| 136 | delete m_data->m_commandProcessor; |
| 137 | } |
| 138 | |
| 139 | resetData(); |
| 140 | |
| 141 | delete m_data; |
| 142 | } |
| 143 | |
| 144 | void PhysicsDirect::resetData() |
| 145 | { |
nothing calls this directly
no test coverage detected