diff options
Diffstat (limited to 'platform/default/mbgl/storage/offline.cpp')
-rw-r--r-- | platform/default/mbgl/storage/offline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/default/mbgl/storage/offline.cpp b/platform/default/mbgl/storage/offline.cpp index fd2d47819b..8c5f874881 100644 --- a/platform/default/mbgl/storage/offline.cpp +++ b/platform/default/mbgl/storage/offline.cpp @@ -82,8 +82,9 @@ std::string encodeOfflineRegionDefinition(const OfflineRegionDefinition& region) bounds.PushBack(region.bounds.east(), doc.GetAllocator()); doc.AddMember("bounds", bounds, doc.GetAllocator()); - doc.AddMember("min_zoom", region.minZoom, doc.GetAllocator()); - if (std::isfinite(region.maxZoom)) { + // warning: Potential memory leak [clang-analyzer-unix.Malloc] + doc.AddMember("min_zoom", region.minZoom, doc.GetAllocator()); // NOLINT + if (std::isfinite(region.maxZoom)) { // NOLINT doc.AddMember("max_zoom", region.maxZoom, doc.GetAllocator()); } |