From f8cc644b8ca23205d22b1b898e6cd6ffb6ac73dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 25 Nov 2024 14:26:33 +0100 Subject: [PATCH] Kodi: Fix unregister nonexisting plugin timer --- kodi/integrationpluginkodi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kodi/integrationpluginkodi.cpp b/kodi/integrationpluginkodi.cpp index 8aa10e89b..ff4d78572 100644 --- a/kodi/integrationpluginkodi.cpp +++ b/kodi/integrationpluginkodi.cpp @@ -47,7 +47,9 @@ IntegrationPluginKodi::IntegrationPluginKodi() IntegrationPluginKodi::~IntegrationPluginKodi() { - hardwareManager()->pluginTimerManager()->unregisterTimer(m_pluginTimer); + if (m_pluginTimer) + hardwareManager()->pluginTimerManager()->unregisterTimer(m_pluginTimer); + delete m_serviceBrowser; delete m_httpServiceBrowser; }