aboutsummaryrefslogtreecommitdiff
path: root/lib/nav/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nav/core.cpp')
-rw-r--r--lib/nav/core.cpp6
1 files changed, 4 insertions, 2 deletions
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<iPlayableService> tmp = m_runningService;
+ m_runningService=0;
+ tmp->stop();
+
/* kill service. */
- m_runningService = 0;
m_service_event_conn = 0;
return 0;
}