summaryrefslogtreecommitdiff
path: root/sensors/common/utils/EventMessageQueueWrapper.h
diff options
context:
space:
mode:
authorJintao Zhu <zhujtcsieee@gmail.com>2021-03-14 22:03:11 +0800
committerJintao Zhu <zhujtcsieee@gmail.com>2021-03-18 23:39:11 +0800
commitcfefc7b5e805caa9201d5fe9f91edbb75f0df866 (patch)
tree75f2edaa20bd6ee7c2a50fb796d6826a4d1c45d8 /sensors/common/utils/EventMessageQueueWrapper.h
parent5e4453f690dc15e30d43adc58fbc564e759ca475 (diff)
Fix RefBase Explicit destruction
For an object to be managed by std smart pointer, its base class should NOT be "RefBase". It is not only unnecessary but also risking the object being owned by android smart pointer as well, which may destroy the object two times. This issue may be detected by the destructor of class RefBase, with the log complaint "RefBase: Explicit destruction,..." Test: monkey test for one day and one night Signed-off-by: Jintao Zhu <zhujtcsieee@gmail.com> Change-Id: If7736770983e17f5a4125b19dfbd1745ee5a9589
Diffstat (limited to 'sensors/common/utils/EventMessageQueueWrapper.h')
-rw-r--r--sensors/common/utils/EventMessageQueueWrapper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sensors/common/utils/EventMessageQueueWrapper.h b/sensors/common/utils/EventMessageQueueWrapper.h
index c4f92c8386..63e4eb0704 100644
--- a/sensors/common/utils/EventMessageQueueWrapper.h
+++ b/sensors/common/utils/EventMessageQueueWrapper.h
@@ -33,7 +33,7 @@ namespace sensors {
namespace V2_1 {
namespace implementation {
-class EventMessageQueueWrapperBase : public RefBase {
+class EventMessageQueueWrapperBase {
public:
virtual ~EventMessageQueueWrapperBase() {}