remove circular shared_ptr and a few other memory leaks

This commit is contained in:
Konstantin Käfer
2015-01-19 17:40:24 +01:00
parent 5602ba2f07
commit 31a0d18ca1
14 changed files with 159 additions and 85 deletions

View File

@@ -192,8 +192,6 @@ void Map::start(bool startPaused) {
pthread_setname_np("Map");
#endif
workers = util::make_unique<uv::worker>(**loop, 4, "Tile Worker");
run();
#ifndef NDEBUG
@@ -276,6 +274,9 @@ void Map::run() {
}
view.activate();
workers = util::make_unique<uv::worker>(**loop, 4, "Tile Worker");
setup();
prepare();