This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit b75e8ff
committed
Unregister onFrameAvailable callbacks when a TextureEntry is released.
Otherwise the callbacks may be called after FlutterNativeView is destroyed and is null.
Also defensively check for whether the texture is already released in the callback because the callback may be called from another thread by a stale reference (see the comment).
This closes flutter/flutter#20951.1 parent 774a704 commit b75e8ff
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
1000 | 1007 | | |
1001 | 1008 | | |
1002 | | - | |
| 1009 | + | |
1003 | 1010 | | |
1004 | 1011 | | |
1005 | 1012 | | |
| |||
1019 | 1026 | | |
1020 | 1027 | | |
1021 | 1028 | | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1022 | 1032 | | |
1023 | 1033 | | |
1024 | 1034 | | |
| |||
0 commit comments