aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-31 11:59:12 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-31 11:59:12 -0500
commitad789d53f4c4bb059eb52c97c53d720c7ccb7a3e (patch)
tree09068d4f3fe94fa00d95b928a374c1ce466c5ac0
parent5809e107390f59ad11565e8b8644c191f8430dd3 (diff)
downloadayatana-indicator-datetime-ad789d53f4c4bb059eb52c97c53d720c7ccb7a3e.tar.gz
ayatana-indicator-datetime-ad789d53f4c4bb059eb52c97c53d720c7ccb7a3e.tar.bz2
ayatana-indicator-datetime-ad789d53f4c4bb059eb52c97c53d720c7ccb7a3e.zip
in Haptic::Impl::~Impl(), call ua_sensors_haptic_disable(). h/t Antti
-rw-r--r--src/haptic.cpp2
1 files changed, 1 insertions, 1 deletions
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);