Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 73d89ca

Browse files
[CP][Impeller] Fix leak of wrapped TextureMTL objects in the Metal embedder API (#44245) (#44286)
Fixes flutter/flutter#131682
1 parent 8640101 commit 73d89ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

impeller/renderer/backend/metal/texture_mtl.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
new TextureMTL(desc, texture, true),
4545
[deletion_proc = std::move(deletion_proc)](TextureMTL* t) {
4646
deletion_proc();
47+
delete t;
4748
});
4849
}
4950
return std::shared_ptr<TextureMTL>(new TextureMTL(desc, texture, true));

0 commit comments

Comments
 (0)