diff --git a/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp b/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp index 5097429e3a..cae809ff16 100644 --- a/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp +++ b/samples/Cpp/TestCpp/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp @@ -526,6 +526,7 @@ _pos = _max; \ void SpriteAccelerationEventTest::onExit() { Device::setAccelerometerEnabled(false); + EventDispatcherTestDemo::onExit(); } std::string SpriteAccelerationEventTest::title()