[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Sun Nov 7 13:31:19 CET 2010
SVN commit 1193868 by jmhoffmann:
Add LayerManagerPrivate dtor and destroy its plugins there.
M +9 -3 LayerManager.cpp
--- trunk/KDE/kdeedu/marble/src/lib/LayerManager.cpp #1193867:1193868
@@ -55,6 +55,8 @@
m_renderPlugins = pluginManager->createRenderPlugins();
}
+ ~LayerManagerPrivate();
+
GeoSceneDocument *m_mapTheme;
MarbleDataFacade *m_dataFacade;
@@ -65,7 +67,14 @@
QList<LayerInterface *> m_internalLayers;
};
+LayerManagerPrivate::~LayerManagerPrivate()
+{
+ foreach( RenderPlugin * renderPlugin, m_renderPlugins )
+ renderPlugin->setDataFacade( 0 );
+ qDeleteAll( m_renderPlugins );
+}
+
LayerManager::LayerManager( MarbleDataFacade* dataFacade,
PluginManager* pluginManager, QObject *parent )
: QObject( parent ),
@@ -98,9 +107,6 @@
LayerManager::~LayerManager()
{
- foreach( RenderPlugin * renderPlugin, d->m_renderPlugins )
- renderPlugin->setDataFacade( 0 );
- qDeleteAll( d->m_renderPlugins );
delete d;
}
More information about the Marble-commits
mailing list