Unverified Commit 209865ae authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Clean up in memory_allocations_test.dart. (#125777)

parent 12b3023e
...@@ -210,12 +210,8 @@ Future<int> _activateFlutterObjectsAndReturnCountOfEvents() async { ...@@ -210,12 +210,8 @@ Future<int> _activateFlutterObjectsAndReturnCountOfEvents() async {
changeNotifier.dispose(); count++; changeNotifier.dispose(); count++;
picture.dispose(); count++; picture.dispose(); count++;
// TODO(polina-c): Remove the condition after
// https://github.com/flutter/flutter/issues/110599 is fixed.
if (!kIsWeb) {
final Image image = await _createImage(); count++; count++; count++; final Image image = await _createImage(); count++; count++; count++;
image.dispose(); count++; image.dispose(); count++;
}
return count; return count;
} }
......
...@@ -57,12 +57,8 @@ Future<void> _activateFlutterObjects(WidgetTester tester) async { ...@@ -57,12 +57,8 @@ Future<void> _activateFlutterObjects(WidgetTester tester) async {
changeNotifier.dispose(); changeNotifier.dispose();
picture.dispose(); picture.dispose();
// TODO(polina-c): Remove the condition after
// https://github.com/flutter/flutter/issues/110599 is fixed.
if (!kIsWeb) {
final Image image = await _createImage(); final Image image = await _createImage();
image.dispose(); image.dispose();
}
} }
Future<Image> _createImage() async { Future<Image> _createImage() async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment