[Marble-commits] KDE/kdeedu/marble/src/lib
Laurent Montel
montel at kde.org
Sun Jan 16 14:59:06 CET 2011
SVN commit 1214816 by mlaurent:
Don't check pointer before to delete it
M +0 -2 BookmarkManager.cpp
--- trunk/KDE/kdeedu/marble/src/lib/BookmarkManager.cpp #1214815:1214816
@@ -97,9 +97,7 @@
mDebug() << "Could not parse file" << absoluteFilePath;
}
- if ( d->m_bookmarkDocument ) {
delete d->m_bookmarkDocument;
- }
d->m_bookmarkDocument = dynamic_cast<GeoDataDocument*>( parser.releaseDocument() );
Q_ASSERT( d->m_bookmarkDocument );
More information about the Marble-commits
mailing list