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

[FIX] domaineditor: Give the VarTableModel a parent #2961

Merged
merged 1 commit into from
Mar 30, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

OWFile creates a uncollectable ref cycle by connecting the VarTableModel.dataChanged to a lambda capturing self (and the VarTableModel instance) in the closure.

Description of changes

Make the VarTableModel a child of the DomainEditor so it is destroyed with it.

Includes
  • Code changes
  • Tests
  • Documentation

Fix a memory leak keeping the OWFile instance (and its loaded data) from
being garbage collected.
@codecov-io
Copy link

Codecov Report

Merging #2961 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #2961   +/-   ##
=======================================
  Coverage   81.86%   81.86%           
=======================================
  Files         329      329           
  Lines       56785    56785           
=======================================
  Hits        46486    46486           
  Misses      10299    10299

@ales-erjavec
Copy link
Contributor Author

Or wait and require sip >= 4.19.9

@astaric astaric added this to the 3.12 milestone Mar 30, 2018
@astaric
Copy link
Member

astaric commented Mar 30, 2018

I would include this anyway

@lanzagar lanzagar merged commit 17c385f into biolab:master Mar 30, 2018
@ales-erjavec ales-erjavec deleted the fixes/owfile-memleak branch April 10, 2018 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants