Index: /trunk/src/org/openstreetmap/josm/gui/MapStatus.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/MapStatus.java	(revision 4762)
+++ /trunk/src/org/openstreetmap/josm/gui/MapStatus.java	(revision 4763)
@@ -257,7 +257,7 @@
                                 // if the middle mouse button has been pressed in the first
                                 // place
-                                boolean isAtOldPosition = (oldMousePos != null
-                                        && oldMousePos.equals(ms.mousePos)
-                                        && popup != null);
+                                boolean mouseNotMoved = oldMousePos != null
+                                        && oldMousePos.equals(ms.mousePos);
+                                boolean isAtOldPosition = mouseNotMoved && popup != null;
                                 boolean middleMouseDown = (ms.modifiers & MouseEvent.BUTTON2_DOWN_MASK) != 0;
                                 try {
@@ -275,6 +275,7 @@
                                     }
 
-                                    // Set the text label in the bottom status bar
-                                    statusBarElementUpdate(ms);
+                                    // Set the text label in the bottom status bar 
+                                    // "if mouse moved only" was added to stop heap growing
+                                    if (!mouseNotMoved) statusBarElementUpdate(ms);
 
 
