mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
Fix silly bug.
This commit is contained in:
@@ -81,7 +81,7 @@ CPOCSAGControl::~CPOCSAGControl()
|
||||
m_buffer.clear();
|
||||
|
||||
for (std::deque<POCSAGData*>::iterator it = m_data.begin(); it != m_data.end(); ++it)
|
||||
delete it;
|
||||
delete *it;
|
||||
m_data.clear();
|
||||
}
|
||||
|
||||
@@ -475,7 +475,7 @@ void CPOCSAGControl::enable(bool enabled)
|
||||
m_output.clear();
|
||||
|
||||
for (std::deque<POCSAGData*>::iterator it = m_data.begin(); it != m_data.end(); ++it)
|
||||
delete it;
|
||||
delete *it;
|
||||
m_data.clear();
|
||||
|
||||
m_state = PS_NONE;
|
||||
|
||||
Reference in New Issue
Block a user