SVN commit 784515 by wildfox: - Test access to nonexistant property (we do want to create unit tests for such things!) Force deleting document, preparing for GeoNode-leak-checker. M +3 -1 GeoDataTest.cpp --- trunk/KDE/kdeedu/marble/src/lib/geodata/GeoDataTest.cpp #784514:784515 @@ -101,7 +101,7 @@ qDebug() << "Name: " << sceneDocument->settings()->property( "relief" )->name(); qDebug() << "Available: " << sceneDocument->settings()->property( "relief" )->available(); qDebug() << "Enabled: " << sceneDocument->settings()->property( "relief" )->enabled(); - + qDebug() << "Test query a nonexistant property: " << sceneDocument->settings()->property( "notexistant" )->name(); dumpGeoSceneDocument(static_cast(document)); } else { @@ -110,6 +110,8 @@ } qDebug() << "\nSuccesfully parsed file!"; + delete document; + return 0; }