Browse Source

Fehler behoben

Kolja Strohm 5 years ago
parent
commit
6a26438c7c
2 changed files with 5 additions and 3 deletions
  1. 2 0
      Asteroids/Editor/Editor.cpp
  2. 3 3
      Asteroids/Editor/Karte/EditorKarte.cpp

+ 2 - 0
Asteroids/Editor/Editor.cpp

@@ -37,6 +37,8 @@ AsteroidsEditor::~AsteroidsEditor()
         laden->release();
     if( i )
         i->release();
+    if( daten->isRunning() )
+        daten->warteAufThread( INT_MAX );
     if( daten )
         daten->release();
     dialogs->release();

+ 3 - 3
Asteroids/Editor/Karte/EditorKarte.cpp

@@ -21,11 +21,11 @@ KarteDaten::~KarteDaten()
         warteAufThread( INT_MAX );
     cs.lock();
     for( auto i = objekte.getIterator(); i; i++ )
-        delete i;
+        delete i._;
     for( auto i = spieler.getIterator(); i; i++ )
-        delete i;
+        delete i._;
     for( auto i = teams.getIterator(); i; i++ )
-        delete i;
+        delete i._;
     sts->release();
     client->release();
 }