Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that the SingleFrameCodec stays alive until the ImageDecoder i…
…nvokes its callback (#10297) SingleFrameCodec had been holding a persistent handle to the peer Dart object while waiting for the decoder callback. However, Dart code could call Codec.dispose during that interval, which would cause the Dart peer to drop its reference to the SingleFrameCodec and potentially delete the SingleFrameCodec. Fixes #36631
- Loading branch information
1 parent
6aad139
commit 59ac63d
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters