| Summary: | DelayedDirectEditHelper does unregister control listeners when aborted | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Liam Asher Segel-Brown <liamsb> | ||||
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Anthony Hunter <ahunter.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | trivial | ||||||
| Priority: | P3 | CC: | ahunter.eclipse, hudsonr, mlehmannm, nyssen | ||||
| Version: | 3.4 | ||||||
| Target Milestone: | 3.5.0 (Galileo) M7 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Liam Asher Segel-Brown
This will probably fix a problem that sometimes the listener won't unregister, which results in memory leaks, because the DelayedDirectEditHelper holds a reference to the source edit part. Created attachment 101105 [details]
Patch that fixes the described problem for me, please review.
> Created an attachment (id=101105) [details]
> Patch that fixes the described problem for me, please review.
The patch looks safer than the original suggestion of just moving the code around ;-). Calling remove listener would sometimes throw a widget is disposed exception.
While we're in this class, I noticed that SWT has added getDoubleClickTime() to Display. We originally had to guess at this, which is why we have a magic number (400) in the code.
(In reply to comment #3) > While we're in this class, I noticed that SWT has added getDoubleClickTime() to > Display. We originally had to guess at this, which is why we have a magic > number (400) in the code. Bug 271021 Committed to HEAD for 3.5. |