delete action pointer

This commit is contained in:
Remco
2016-06-20 13:44:02 +02:00
parent 7758f2c294
commit 03c06e0974
+2
View File
@@ -22,6 +22,8 @@ Button::Button(const std::string & text, Vec2f position, float width, float heig
Button::~Button()
{
if (action != nullptr)
delete action;
}
void Button::draw(void)