From f92cfbd708870d889b69ce3fb788e4353bafbd13 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Wed, 16 Mar 2016 15:53:17 +0100 Subject: [PATCH] [Push] Unregister the listener in destructor of instance. Fix for potential segmentation fault. [Verification] TCT pass rate: 100% (41/41/0/0/0). Change-Id: Ie2e5945bdb5520204441f39e38128dc9b5cbed33 Signed-off-by: Pawel Andruszkiewicz --- src/push/push_instance.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/push/push_instance.cc b/src/push/push_instance.cc index 6836b8cd..2e8dc75a 100644 --- a/src/push/push_instance.cc +++ b/src/push/push_instance.cc @@ -216,6 +216,7 @@ void PushInstance::onDeregister(double callbackId, PushInstance::~PushInstance() { LoggerD("Enter"); + PushManager::getInstance().setListener(nullptr); } } // namespace push -- 2.34.1