Clean up memory footprint after geometry is created

feature/web-workers-polygons-memory
Robin Hawkes 2016-09-02 16:24:34 +01:00
rodzic 89ea1ee87d
commit 62795c673d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1EC4C2D6765FA8CF
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -225,6 +225,11 @@ class GeoJSONWorkerLayer extends Layer {
this.add(this._polygonMesh);
}
// Clean up
results.attributes = null;
results.flats = null;
results = null;
resolve();
});
});