diff --git a/APRSFrame.cpp b/APRSFrame.cpp index 1f8724f..a28ba4c 100644 --- a/APRSFrame.cpp +++ b/APRSFrame.cpp @@ -38,6 +38,11 @@ m_type(type) m_path.assign(path.begin(), path.end()); } +CAPRSFrame::~CAPRSFrame() +{ + m_path.clear(); +} + void CAPRSFrame::clear() { m_source.clear(); diff --git a/APRSFrame.h b/APRSFrame.h index 6c50eee..2fc790c 100644 --- a/APRSFrame.h +++ b/APRSFrame.h @@ -36,6 +36,7 @@ class CAPRSFrame { public: CAPRSFrame(); CAPRSFrame(const std::string& source, const std::string& destination, const std::vector& path, const std::string& body, APRS_FRAME_TYPE type); + ~CAPRSFrame(); void clear(); std::string& getSource() { return m_source; }