Skip to content

[Bug]: [connectivity_plus] potential memory leak for ConnectivityPlusPlugin and PathMonitorConnectivityProvider #3652

@jonhcbs

Description

@jonhcbs

Platform

iOS 18.5

Plugin

connectivity_plus

Version

6.1.5

Flutter SDK

3.29.1

Steps to reproduce

Install plugin on ios app
Run app
check memory graphs in the xcode, find potential memory leaks

Code Sample

Logs

ConnectivityPlusPlugin((id)0x6000024d4d50)((id)0x60000385dc20)((id)0x60000386b600)((id)0x6000038ead00)((id)0x6000039008a0)((id)0x6000039f49f0)((id)0x600003aefab0)

PathMonitorConnectivityProvider((id)0x6000024d74b0)((id)0x60000385d7a0)((id)0x6000038ea880)((id)0x600003902670)((id)0x6000039f4630)((id)0x600003a5ffc0)((id)0x600003aecc90)

Flutter Doctor

Flutter (Channel [user-branch], 3.29.1, on macOS 15.3.1 24D70 darwin-arm64,
    locale zh-Hans-CN)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.103.2)

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions