solid-software / languagetool_textfield

🌐 Flutter text field that implements LanguageTool spellcheck.
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Potential memory leaks from using the `throttling` package #33

Closed mitryp closed 1 year ago

mitryp commented 1 year ago

Objects Debouncing in the DebounceLangToolService and Throttling in the ThrottlingLangToolService are never closed, although the documentation of the package suggests doing so to prevent memory leaks:

// in 'package:throttle/throttle.dart

/// Closing instances of Sink prevents
/// memory leaks and unexpected behavior.
@Deprecated('Use [close] instead')
void dispose() => close();