File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,7 @@ namespace WPEFramework
100
100
101
101
void HdmiCecSink::Deinitialize (PluginHost::IShell* /* service */ )
102
102
{
103
- if (_powerManagerPlugin)
104
- {
105
- _powerManagerPlugin->Unregister (_pwrMgrNotification.baseInterface <Exchange::IPowerManager::IModeChangedNotification>());
106
- _powerManagerPlugin.Reset ();
107
- }
108
- _registeredEventHandlers = false ;
109
-
103
+
110
104
profileType = searchRdkProfile ();
111
105
112
106
if (profileType == STB || profileType == NOT_FOUND)
@@ -150,6 +144,7 @@ namespace WPEFramework
150
144
}
151
145
152
146
_connectionId = 0 ;
147
+ _service->Unregister (&_notification);
153
148
_service->Release ();
154
149
_service = nullptr ;
155
150
LOGINFO (" HdmiCecSink plugin is deactivated. Successfully deactivated HdmiCecSink Plugin" );
Original file line number Diff line number Diff line change @@ -615,7 +615,8 @@ namespace WPEFramework
615
615
{
616
616
if (_powerManagerPlugin)
617
617
{
618
- _powerManagerPlugin.Reset ();
618
+ _powerManagerPlugin->Unregister (_pwrMgrNotification.baseInterface <Exchange::IPowerManager::IModeChangedNotification>());
619
+ _powerManagerPlugin.Reset ();
619
620
}
620
621
_registeredEventHandlers = false ;
621
622
You can’t perform that action at this time.
0 commit comments