Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks in fml/platform/darwin #46750

Closed
cyanglaz opened this issue Dec 11, 2019 · 3 comments
Closed

Memory leaks in fml/platform/darwin #46750

cyanglaz opened this issue Dec 11, 2019 · 3 comments
Assignees
Labels
a: platform-views Embedding Android/iOS views in Flutter apps engine flutter/engine repository. See also e: labels. platform-ios iOS applications specifically
Milestone

Comments

@cyanglaz
Copy link
Contributor

cyanglaz commented Dec 11, 2019

Some objc objects are not released in this file. We need to fix those to avoid leaks.

One example would be CAShapeLayer* clip = [[CAShapeLayer alloc] init]; is never released.

We should use fml::CFRef for all CoreFoundation objects.

@cyanglaz cyanglaz changed the title Memory leaks in FlutterPlatformViews_Internal.mm Memory leaks in fml/platform/darwin Dec 11, 2019
@cyanglaz cyanglaz self-assigned this Dec 11, 2019
@cyanglaz cyanglaz added a: platform-views Embedding Android/iOS views in Flutter apps e: embedder Users of the Embedder API engine flutter/engine repository. See also e: labels. platform-ios iOS applications specifically and removed engine flutter/engine repository. See also e: labels. e: embedder Users of the Embedder API labels Dec 11, 2019
@cyanglaz cyanglaz added this to the March 2020 milestone Dec 11, 2019
@zhongwuzw
Copy link
Member

cbracken pushed a commit to flutter/engine that referenced this issue Dec 18, 2019
Fixes CALayer memory leaks in file FlutterPlatformViews_Internal.mm,FlutterPlatformViews.mm

flutter/flutter#46750
@kf6gpe kf6gpe added a: platform-views Embedding Android/iOS views in Flutter apps and removed a: platform-views Embedding Android/iOS views in Flutter apps labels Jan 6, 2020
cbracken pushed a commit to flutter/engine that referenced this issue Jan 24, 2020
@cyanglaz
Copy link
Contributor Author

This seems to be fixed, closing the issue.

NoamDev pushed a commit to NoamDev/engine that referenced this issue Feb 27, 2020
Partizann pushed a commit to Partizann/engine that referenced this issue Mar 10, 2020
Fixes CALayer memory leaks in file FlutterPlatformViews_Internal.mm,FlutterPlatformViews.mm

flutter/flutter#46750
filmil pushed a commit to filmil/engine that referenced this issue Mar 13, 2020
Fixes CALayer memory leaks in file FlutterPlatformViews_Internal.mm,FlutterPlatformViews.mm

flutter/flutter#46750
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: platform-views Embedding Android/iOS views in Flutter apps engine flutter/engine repository. See also e: labels. platform-ios iOS applications specifically
Projects
None yet
Development

No branches or pull requests

3 participants