Skip to content

Commit 4cd3fc0

Browse files
author
Martyn York
committed
fixes for test
1 parent 98a51fa commit 4cd3fc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/InputHandlerTest/InputHandlerTest.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class EntityInputHandler : public Monocle::Entity, public Monocle::Input::EventHandler
88
{
99
public:
10+
~EntityInputHandler() { }
1011
void OnKeyPress() { }
1112
};
1213

@@ -25,7 +26,9 @@ class InputHandlerTestScene : public Monocle::Scene, public Monocle::Input::Even
2526

2627
if(key == Monocle::KEY_R)
2728
{
28-
delete entity;
29+
if(entity)
30+
delete entity;
31+
entity = NULL;
2932
}
3033
}
3134

0 commit comments

Comments
 (0)