This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254932

Summary: Leaking editor Caret instance
Product: versioncontrol Reporter: Miloslav Metelka <mmetelka>
Component: MercurialAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 239360    

Description Miloslav Metelka 2015-09-02 13:14:23 UTC
I'm hunting memory leaks and one of the queries shows that Caret instance is held by AnnotationBar even when the original component no longer holds that caret instance. This is not a serious leak but I'll fix it because it will no longer be necessary to inspect this particular scenario.
Comment 1 Miloslav Metelka 2015-09-02 13:25:19 UTC
http://hg.netbeans.org/jet-main/rev/0687fe5a0abc
Comment 2 Quality Engineering 2015-09-03 01:24:53 UTC
Integrated into 'main-silver', will be available in build *201509030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0687fe5a0abc
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #254932 - Leaking editor Caret instance.
Comment 3 Ondrej Vrabec 2015-09-07 14:44:13 UTC
Applying the fix to other annotation bars we have...

Fix: http://hg.netbeans.org/core-main/rev/7cd517d21ef7
Comment 4 Ondrej Vrabec 2015-09-07 14:46:38 UTC
one more change...

Fix: http://hg.netbeans.org/core-main/rev/7242c3e7f9fc
Comment 5 Quality Engineering 2015-09-09 01:23:58 UTC
Integrated into 'main-silver', will be available in build *201509090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7cd517d21ef7
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #254932 - Leaking editor Caret instance
Transplant Mila's fix to all annotation bars.