Skip to content

Commit

Permalink
[CP][Impeller] Fix leak of wrapped TextureMTL objects in the Metal em…
Browse files Browse the repository at this point in the history
…bedder API (#44245) (#44286)

Fixes flutter/flutter#131682
  • Loading branch information
jason-simmons authored Aug 7, 2023
1 parent 8640101 commit 73d89ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impeller/renderer/backend/metal/texture_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
new TextureMTL(desc, texture, true),
[deletion_proc = std::move(deletion_proc)](TextureMTL* t) {
deletion_proc();
delete t;
});
}
return std::shared_ptr<TextureMTL>(new TextureMTL(desc, texture, true));
Expand Down

0 comments on commit 73d89ca

Please sign in to comment.