Skip to content

Commit

Permalink
Fix: added virtual destructor to Abstract_game class.
Browse files Browse the repository at this point in the history
  • Loading branch information
tov committed Mar 4, 2020
1 parent 828592f commit c7f68bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/ge211_base.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ public:
/// function.
static const Dimensions default_window_dimensions;

/// Polymorphic classes should have virtual destructors.
virtual ~Abstract_game() {}

protected:
/// \name Functions to be overridden by clients
///@{
Expand Down

0 comments on commit c7f68bf

Please sign in to comment.