Skip to content

_RawView is leaking in 'runApp throws if given a View' #142416

@polina-c

Description

@polina-c

The leak is introduced by #142344
The leak does not repro on mac, but repros on Windows, with bots.
PR that repros the leak: #142414

Can it by test only because of using FakeFlutterView?

Code that creates not disposed objects:

  @override
  RenderObjectElement createElement() => _RawViewElement(this);

  @override
  RenderObject createRenderObject(BuildContext context) {
    return _deprecatedRenderView ?? RenderView(
      view: view,
    );
  }

Failing test: runApp throws if given a View

Metadata

Metadata

Assignees

Labels

a: leak trackingIssues and PRs related to memory leaks detected by leak_tracker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions