From 3c1a8474f97dd6873c95a9fafc6fa021f5329d5f Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 4 Oct 2007 06:18:49 +0000 Subject: [PATCH] FilePendingMessageCursor was being added twice to the MemoryUsage which resulted in a memory leak git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@581784 13f79535-47bb-0310-9956-ffa450edef68 --- .../activemq/broker/region/cursors/FilePendingMessageCursor.java | 1 - 1 file changed, 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java index 14fa99bfce..4efc724961 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java @@ -252,7 +252,6 @@ public class FilePendingMessageCursor extends AbstractPendingMessageCursor imple public void setSystemUsage(SystemUsage usageManager) { super.setSystemUsage(usageManager); - usageManager.getMemoryUsage().addUsageListener(this); } public void onUsageChanged(Usage usage, int oldPercentUsage, int newPercentUsage) {