summaryrefslogtreecommitdiffstats
path: root/plugins/feedback/symbian/qfeedback_symbian.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/feedback/symbian/qfeedback_symbian.cpp')
-rw-r--r--plugins/feedback/symbian/qfeedback_symbian.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/feedback/symbian/qfeedback_symbian.cpp b/plugins/feedback/symbian/qfeedback_symbian.cpp
index 11573de03c..c10f96bd36 100644
--- a/plugins/feedback/symbian/qfeedback_symbian.cpp
+++ b/plugins/feedback/symbian/qfeedback_symbian.cpp
@@ -78,12 +78,19 @@ QFeedbackSymbian::QFeedbackSymbian()
#endif
initActuators();
+ connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(freeResources()));
}
QFeedbackSymbian::~QFeedbackSymbian()
{
+ freeResources();
+}
+
+void QFeedbackSymbian::freeResources()
+{
#ifdef USE_CHWRMHAPTICS_PLZ
qDeleteAll(m_haptics);
+ m_haptics.clear();
#endif
}