More attempts to deal with double-free

This commit is contained in:
Ashley Rogers 2025-06-18 14:05:44 -04:00
parent 58329b5d3b
commit 4ecfd7625e
1 changed files with 2 additions and 3 deletions

View File

@ -532,8 +532,7 @@ public:
glm::ivec2(options.maximumTextureSize));
return this->getAsyncSystem().runInWorkerThread(
[document = this->_pDocument,
&tree = this->_tree,
[&tree = this->_tree,
_ellipsoid = this->_ellipsoid,
projection = this->getProjection(),
rectangle = overlayTile.getRectangle(),
@ -632,7 +631,7 @@ GeoJsonDocumentRasterOverlay::createTileProvider(
return std::move(
const_cast<GeoJsonDocumentRasterOverlay*>(this)->_documentFuture)
.thenImmediately(
.thenInMainThread(
[pOwner,
asyncSystem,
pAssetAccessor,