Skip to content

Commit

Permalink
[apps] Fix virtual destructor for abstract struct SrtStatData (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored Jan 29, 2021
1 parent 051760d commit 85e3013
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion apps/apputil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ struct SrtStatsTableInit
STAT(RECV, bytesLost, byteRcvLoss);
STAT(RECV, bytesDropped, byteRcvDrop);
STAT(RECV, mbitRate, mbpsRecvRate);

}
} g_SrtStatsTableInit (g_SrtStatsTable);

Expand Down
2 changes: 1 addition & 1 deletion apps/apputil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ struct SrtStatData
std::string longname;

SrtStatData(SrtStatCat cat, std::string n, std::string l): category(cat), name(n), longname(l) {}
virtual ~SrtStatData() {}

virtual void PrintValue(std::ostream& str, const CBytePerfMon& mon) = 0;
};
Expand Down Expand Up @@ -379,7 +380,6 @@ class SrtStatsWriter

protected:
std::map<std::string, std::string> options;

};

extern std::vector<std::unique_ptr<SrtStatData>> g_SrtStatsTable;
Expand Down

0 comments on commit 85e3013

Please sign in to comment.