Bug 425626 - memory leak in DiagramRulerProvider
Summary: memory leak in DiagramRulerProvider
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-14 02:38 EST by wang bb CLA
Modified: 2014-01-14 02:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wang bb CLA 2014-01-14 02:38:17 EST
In our project, we use gmf, and we get memory leak issue.

we found that DiagramRulerProvider add NotificationListener for guides in init(), but not remove from DiagramEventBroker when invoke uninit().

Even DiagramEventBroker use weakhashmap for store the listener, but the key, which is the guide is also referenced by the value, so the listener can't been released when my resource is unload.

Is there any other way to remove the listener for the guides, which are added in NotificationListener.init()