[Mc4j-development] Memory leak in notification code
                
                Brought to you by:
                
                    ghinkl
                    
                
            
            
        
        
        
    | 
      
      
      From: Elias R. <ge...@no...> - 2013-05-01 18:16:38
      
     | 
| Not sure this list is watched anymore, but there is a bug in MBean
notification handling.
DNotification {
    protected List<EmsNotificationEvent> events = new
ArrayList<EmsNotificationEvent>();
    protected void fireNotifications(EmsNotificationEvent event) {
        events.add(event);
        for (EmsNotificationListener listener : listeners) {
            listener.handleNotification(event);
        }
    }
There is no way to clear the events list. Every event that is received is kept.
Is possible for me to send a patch and get it published?
 |