Skip to content

Commit

Permalink
dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Jun 3, 2024
1 parent 7738a36 commit fb80520
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/bindings_player_ffi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ class FlutterSoLoudFfi {
void _voiceEndedCallback(ffi.Pointer<ffi.UnsignedInt> handle) {
_log.fine(() => 'VOICE ENDED EVENT handle: ${handle.value}');
voiceEndedEventController.add(handle.value);
// Must free a pointer made on cpp. On Windows this must be freed
// Must free a pointer made on cpp. On Windows this must be freed
// there and cannot use `calloc.free(...)`
nativeFree(handle.cast<ffi.Void>());

}

/// Controller to listen to file loaded events.
Expand Down

0 comments on commit fb80520

Please sign in to comment.