Skip to content

Commit

Permalink
pvr: fix segfault on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and ksooo committed Dec 21, 2016
1 parent 509070a commit 29c2243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion xbmc/pvr/PVRManager.cpp
Expand Up @@ -78,7 +78,7 @@ using KODI::MESSAGING::HELPERS::DialogResponse;

CPVRManagerJobQueue::CPVRManagerJobQueue()
: m_triggerEvent(false),
m_bStopped(true)
m_bStopped(true)
{
}

Expand Down Expand Up @@ -170,6 +170,8 @@ CPVRManager::CPVRManager(void) :

CPVRManager::~CPVRManager(void)
{
m_addons.reset();

CServiceBroker::GetSettings().UnregisterCallback(this);
CAnnouncementManager::GetInstance().RemoveAnnouncer(this);
CLog::Log(LOGDEBUG,"PVRManager - destroyed");
Expand Down
2 changes: 1 addition & 1 deletion xbmc/pvr/PVRManager.h
Expand Up @@ -673,7 +673,7 @@ namespace PVR
CPVRChannelGroupsContainerPtr m_channelGroups; /*!< pointer to the channel groups container */
CPVRRecordingsPtr m_recordings; /*!< pointer to the recordings container */
CPVRTimersPtr m_timers; /*!< pointer to the timers container */
const CPVRClientsPtr m_addons; /*!< pointer to the pvr addon container */
CPVRClientsPtr m_addons; /*!< pointer to the pvr addon container */
std::unique_ptr<CPVRGUIInfo> m_guiInfo; /*!< pointer to the guiinfo data */
//@}

Expand Down

0 comments on commit 29c2243

Please sign in to comment.