flutter: fix memory cleanup is slow due to not destroying shaders (#2470)

This commit is contained in:
Hán Trung Kiên 2024-03-06 09:43:09 +07:00 committed by GitHub
parent 5edc53f2b0
commit 8e200efdbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,6 +183,11 @@ class Atlas {
for (final image in atlasPages) {
image.dispose();
}
for (final map in atlasPagePaints) {
map.values.forEach((element) {
element.shader?.dispose();
});
}
}
}