Skip to content

Commit

Permalink
Use NS::TransferPtr instead of NS::RetainPtr (#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored Apr 11, 2024
1 parent 4fa6cb2 commit 9f05eaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions platform/ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ MapLibre welcomes participation and contributions from everyone. Please read [`C

## main

## 6.3.2

- Fix potential memory leak ([#2254](https://github.com/maplibre/maplibre-native/pull/2254)).

## 6.3.1

- Add debug symbols to releases (see [Releases on GitHub](https://github.com/maplibre/maplibre-native/releases?q=ios&expanded=true)).
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.1
6.3.2
2 changes: 1 addition & 1 deletion src/mbgl/mtl/texture2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ MTL::Texture* Texture2D::getMetalTexture() const noexcept {
}

void Texture2D::updateSamplerConfiguration() noexcept {
auto samplerDescriptor = NS::RetainPtr(MTL::SamplerDescriptor::alloc()->init());
auto samplerDescriptor = NS::TransferPtr(MTL::SamplerDescriptor::alloc()->init());
samplerDescriptor->setMinFilter(samplerState.filter == gfx::TextureFilterType::Nearest
? MTL::SamplerMinMagFilterNearest
: MTL::SamplerMinMagFilterLinear);
Expand Down

0 comments on commit 9f05eaa

Please sign in to comment.