Commit 20f22ec5 authored by Volker Krause's avatar Volker Krause
Browse files

Don't leak clipping results

parent 0fed6739
......@@ -318,7 +318,7 @@ void TileDirectory::createTiles() const
clipper = QSharedPointer<VectorClipper>(new VectorClipper(, m_zoomLevel));
auto tile = clipper->clipTo(m_zoomLevel, tileId.x(), tileId.y());
std::unique_ptr<GeoDataDocument> tile(clipper->clipTo(m_zoomLevel, tileId.x(), tileId.y()));
if (!GeoDataDocumentWriter::write(outputFile, *tile)) {
qWarning() << "Failed to write tile" << outputFile;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment