Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
test(windows_foundation): fix crash in test
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus authored Dec 6, 2023
1 parent f7ed3ff commit 1297b4f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ void main() {
return value.value;
} finally {
free(valueSize);
free(value.value);
free(value);
}
}
Expand All @@ -189,7 +188,8 @@ void main() {
Uri.https('dartwinrt.dev')
]);

final list = getInspectableArray(pv.ptr).toObjectList(length: 9);
final array = getInspectableArray(pv.ptr);
final list = array.toObjectList(length: 9);
expect(list.length, equals(9));
expect(list[0], isA<IInspectable>());
expect(list[1], isNull);
Expand All @@ -200,6 +200,7 @@ void main() {
expect(list[6], isA<DateTime>());
expect(list[7], isA<Rect>());
expect(list[8], isA<Uri>());
free(array);
});
});

Expand Down

0 comments on commit 1297b4f

Please sign in to comment.