Skip to content

Commit 054b564

Browse files
authored
chore(release): package:win32 v6.0.0 (#1035)
1 parent b372a82 commit 054b564

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

examples/explorer/lib/main.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:ffi/ffi.dart';
2+
import 'package:ffi_leak_tracker/ffi_leak_tracker.dart';
23
import 'package:flutter/material.dart';
34
import 'package:flutter/services.dart';
45
import 'package:path_provider/path_provider.dart';
@@ -8,7 +9,11 @@ import 'volumepanel.dart';
89
import 'windowroundingselector.dart';
910

1011
void main() {
12+
LeakTracker.enableInDebug();
13+
1114
runApp(const ExplorerApp());
15+
16+
LeakTracker.verifyNoLeaksInDebug();
1217
}
1318

1419
class ExplorerApp extends StatelessWidget {

examples/explorer/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66

77
dependencies:
88
ffi: ^2.2.0
9+
ffi_leak_tracker: ^0.1.0
910
flutter:
1011
sdk: flutter
1112
font_awesome_flutter: ^10.12.0

examples/task_manager/lib/main.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import 'package:ffi_leak_tracker/ffi_leak_tracker.dart';
22
import 'package:flutter/material.dart';
3-
import 'package:win32/win32.dart';
43

54
import 'models.dart';
65
import 'task_service.dart';
76

87
void main() {
9-
LeakTracker.enable();
8+
LeakTracker.enableInDebug();
109

1110
runApp(const TaskManagerApp());
1211

13-
reportMemoryLeaks();
12+
LeakTracker.verifyNoLeaksInDebug();
1413
}
1514

1615
class TaskManagerApp extends StatelessWidget {

examples/task_manager/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ environment:
77

88
dependencies:
99
ffi: ^2.2.0
10-
ffi_leak_tracker:
11-
path: ../../packages/ffi_leak_tracker # TODO: update to ^0.1.0 when released
10+
ffi_leak_tracker: ^0.1.0
1211
flutter:
1312
sdk: flutter
1413
win32:

packages/win32/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [6.0.0] - 2026-02-X
5+
## [6.0.0] - 2026-02-22
66

77
### 🔄 Breaking Changes
88

website/docs/advanced/leak-tracking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Leak Tracking
33
---
44

5-
[`package:ffi_leak_tracker`][package:ffi_leak_tracker] provides
6-
helps you find and diagnose native memory leaks in Dart FFI code by tracking
7-
allocations made through its custom allocators.
5+
[`package:ffi_leak_tracker`][package:ffi_leak_tracker] helps you find and
6+
diagnose native memory leaks in Dart FFI code by tracking allocations made
7+
through its custom allocators.
88

99
It is designed to answer one question precisely:
1010

0 commit comments

Comments
 (0)