From d89a1565238034943560778ab9297bc686fa7f02 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 23 Jan 2019 08:50:22 +0000 Subject: [PATCH] Fix silly bug. --- POCSAGControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/POCSAGControl.cpp b/POCSAGControl.cpp index 5978b70..703a7ad 100644 --- a/POCSAGControl.cpp +++ b/POCSAGControl.cpp @@ -81,7 +81,7 @@ CPOCSAGControl::~CPOCSAGControl() m_buffer.clear(); for (std::deque::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::iterator it = m_data.begin(); it != m_data.end(); ++it) - delete it; + delete *it; m_data.clear(); m_state = PS_NONE;