Skip to content

Commit

Permalink
#12 add destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
F4FXL committed Jan 6, 2022
1 parent c512e28 commit 11b9469
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions APRSFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions APRSFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class CAPRSFrame {
public:
CAPRSFrame();
CAPRSFrame(const std::string& source, const std::string& destination, const std::vector<std::string>& path, const std::string& body, APRS_FRAME_TYPE type);
~CAPRSFrame();

void clear();
std::string& getSource() { return m_source; }
Expand Down

0 comments on commit 11b9469

Please sign in to comment.