Reset width/height before deallocation for Safari allocation bug. (flutter/engine#16469)
This commit is contained in:
@@ -225,6 +225,9 @@ class _CanvasPool extends _SaveStackTracking {
|
||||
void endOfPaint() {
|
||||
if (_reusablePool != null) {
|
||||
for (html.CanvasElement e in _reusablePool) {
|
||||
if (browserEngine == BrowserEngine.webkit) {
|
||||
e.width = e.height = 0;
|
||||
}
|
||||
e.remove();
|
||||
}
|
||||
_reusablePool = null;
|
||||
|
||||
Reference in New Issue
Block a user