From 352d86484af120678918d59aeb80f98eb9b9498a Mon Sep 17 00:00:00 2001 From: schurade Date: Thu, 7 Oct 2010 17:05:24 +0200 Subject: [PATCH] [FIX #404] Crash after deleting ArbitraryPlane, there is still a warning about still referenced osg object but at least it doesn't crash anymore, still investigating --- src/modules/arbitraryPlane/WMArbitraryPlane.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/arbitraryPlane/WMArbitraryPlane.cpp b/src/modules/arbitraryPlane/WMArbitraryPlane.cpp index 2e5246e67..691e61c78 100644 --- a/src/modules/arbitraryPlane/WMArbitraryPlane.cpp +++ b/src/modules/arbitraryPlane/WMArbitraryPlane.cpp @@ -212,6 +212,10 @@ void WMArbitraryPlane::moduleMain() m_dirty = true; } } + WGraphicsEngine::getGraphicsEngine()->getScene()->remove( &( *m_s0 ) ); + WGraphicsEngine::getGraphicsEngine()->getScene()->remove( &( *m_s1 ) ); + WGraphicsEngine::getGraphicsEngine()->getScene()->remove( &( *m_s2 ) ); + con.disconnect(); WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->remove( m_rootNode ); -- GitLab