From: Andreas Monzner Date: Wed, 3 Jan 2007 10:43:30 +0000 (+0000) Subject: fix segfault on zap with active timeshift X-Git-Tag: 2.6.0~2528 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/c54ee36de25775299773381e9f15667659b3b6db?hp=a27edb006a2c1e54305be359d3198b508f80d457 fix segfault on zap with active timeshift --- diff --git a/lib/nav/core.cpp b/lib/nav/core.cpp index 5dc45999..45b4aa6f 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; }