//
// Created by Borin Ouch on 2016-03-22.
//

#ifndef SFML_TEST_GAME_STATE_H
#define SFML_TEST_GAME_STATE_H


#include "game.h"


class GameState {

public:
    Game* game;

    virtual void draw(const float dt) = 0;
    virtual void update(const float dt) = 0;
    virtual void handleInput() = 0;

    virtual ~GameState() {};
};


#endif //SFML_TEST_GAME_STATE_H

//
// Created by Borin Ouch on 2016-03-22.
//

#ifndef SFML_TEST_GAME_STATE_H
#define SFML_TEST_GAME_STATE_H


#include "game.h"


class GameState {

public:
    Game* game;

    virtual void draw(const float dt) = 0;
    virtual void update(const float dt) = 0;
    virtual void handleInput() = 0;
};


#endif //SFML_TEST_GAME_STATE_H

--- 
+++ 
@@ -17,6 +17,8 @@
     virtual void draw(const float dt) = 0;
     virtual void update(const float dt) = 0;
     virtual void handleInput() = 0;
+
+    virtual ~GameState() {};
 };
 
 
Add virtual destructor to game state
