[CPUSensor] Remove interface in destructor
As part of clean exit remove availableInterface and
operationalInterface in CPUSensor destructor.
Tested: Verified interface removed signal is emitted as expected.
Signed-off-by: Arun P. Mohanan <arun.p.m@linux.intel.com>
Change-Id: I5f1f0a1a63b31cd62bbb73d1324d25eab7beff85
diff --git a/src/CPUSensor.cpp b/src/CPUSensor.cpp
index f12a0b7..9760664 100644
--- a/src/CPUSensor.cpp
+++ b/src/CPUSensor.cpp
@@ -110,6 +110,8 @@
objServer.remove_interface(thresholdInterfaceCritical);
objServer.remove_interface(sensorInterface);
objServer.remove_interface(association);
+ objServer.remove_interface(availableInterface);
+ objServer.remove_interface(operationalInterface);
}
}