From ad789d53f4c4bb059eb52c97c53d720c7ccb7a3e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 31 Jul 2014 11:59:12 -0500 Subject: in Haptic::Impl::~Impl(), call ua_sensors_haptic_disable(). h/t Antti --- src/haptic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/haptic.cpp') diff --git a/src/haptic.cpp b/src/haptic.cpp index c7517d1..637c6f5 100644 --- a/src/haptic.cpp +++ b/src/haptic.cpp @@ -54,7 +54,7 @@ public: ~Impl() { if (m_sensor != nullptr) - ua_sensors_haptic_enable(m_sensor); + ua_sensors_haptic_disable(m_sensor); if (m_tag) g_source_remove(m_tag); -- cgit v1.2.3