From: Andreas Monzner Date: Wed, 3 Jan 2007 10:43:30 +0000 (+0000) Subject: fix segfault on zap with active timeshift X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=c54ee36de25775299773381e9f15667659b3b6db;ds=sidebyside fix segfault on zap with active timeshift --- diff --git a/lib/nav/core.cpp b/lib/nav/core.cpp index 5dc4599..45b4aa6 100644 --- a/lib/nav/core.cpp +++ b/lib/nav/core.cpp @@ -62,9 +62,11 @@ RESULT eNavigation::stopService(void) /* send stop event */ m_event(iPlayableService::evEnd); - m_runningService->stop(); + ePtr tmp = m_runningService; + m_runningService=0; + tmp->stop(); + /* kill service. */ - m_runningService = 0; m_service_event_conn = 0; return 0; }