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] Fix OWWidget destruction #3296

Merged
merged 7 commits into from
Oct 19, 2018
Merged

Conversation

ales-erjavec
Copy link
Contributor

Issue

Canvas framework keeps a reference to the OWWidget in the undo/redo stack even when the widget has been removed (ref gh-3206).

Description of changes
  • Use a message group qualified name for message_id to keep track of active messages not the group instance.
Includes
  • Code changes
  • Tests
  • Documentation

The message group instance contains a reference to the widget instance
keeping the widget alive via the undo/redo stack.
@markotoplak
Copy link
Member

Thank you, @ales-erjavec. It works.

@codecov-io
Copy link

codecov-io commented Oct 8, 2018

Codecov Report

Merging #3296 into master will decrease coverage by 0.51%.
The diff coverage is 98.66%.

@@            Coverage Diff             @@
##           master    #3296      +/-   ##
==========================================
- Coverage   82.57%   82.05%   -0.52%     
==========================================
  Files         348      351       +3     
  Lines       61395    61872     +477     
==========================================
+ Hits        50697    50772      +75     
- Misses      10698    11100     +402

@janezd janezd merged commit 73971d7 into biolab:master Oct 19, 2018
@ales-erjavec ales-erjavec deleted the fixes/mem-leaks branch May 20, 2019 11:31
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