Index: src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEntryImpl.java
===================================================================
--- src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEntryImpl.java	(revision 752106)
+++ src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEntryImpl.java	(working copy)
@@ -230,6 +230,7 @@
             } else if (mergeResult.modified()) {
                 currentState.setStatus(Status.MODIFIED);
             } // else: not modified. just leave status as it is.
+            mergeResult.dispose();
         }
     }
 
Index: src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java
===================================================================
--- src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java	(revision 752106)
+++ src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java	(working copy)
@@ -302,7 +302,7 @@
     /**
      * Unmodifiable iterator over the listeners present on this item state.
      *
-     * @return
+     * @return iterator over <code>ItemStateLifeCycleListener</code>s.
      */
     public Iterator getListeners() {
         return Collections.unmodifiableCollection(listeners).iterator();
@@ -348,6 +348,12 @@
          * was modified.
          */
         public boolean modified();
+
+        /**
+         * Dispose this MergeResult and release all internal resources that
+         * are not needed any more.
+         */
+        public void dispose();
     }
 
     /**
@@ -368,6 +374,10 @@
         public boolean modified() {
             return modified;
         }
+
+        public void dispose() {
+            // nothing to do.
+        }
     }
 
 }
Index: src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java
===================================================================
--- src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java	(revision 752106)
+++ src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java	(working copy)
@@ -141,11 +141,12 @@
             // reset the pInfo to point to the pInfo of another state.
             this.data = ((PropertyState) another).data;
             // if transient changes should be preserved OR if there are not
-            // transient changes, simply return diff to indicate if this state
-            // was internally changed.
+            // transient changes, return the differ and postpone the effort of
+            // calculating the diff (the test if this state got internally changed)).
             if (keepChanges || transientData == null) {
                 return result;
             } else {
+                result.dispose();
                 transientData.discardValues();
                 transientData = null;
                 modified = true;
@@ -365,8 +366,7 @@
         }
 
         private void discardValues() {
-            discarded = true;
-            if (values != null) {
+            if (!discarded && values != null) {
                 for (int i = 0; i < values.length; i++) {
                     if (values[i] != null) {
                         // make sure temporarily allocated data is discarded
@@ -374,6 +374,7 @@
                         values[i].discard();
                     }
                 }
+                discarded = true;
             }
         }
     }
@@ -382,22 +383,29 @@
      * Helper class for delayed determination of property differences.
      */
     private class PropertyDiffer implements MergeResult {
-        private final PropertyData thisData;
-        private final PropertyData thatData;
 
-        PropertyDiffer(PropertyData thisData, PropertyData thatData) {
+        private final PropertyData oldData;
+        private final PropertyData newData;
+
+        PropertyDiffer(PropertyData oldData, PropertyData newData) {
             super();
-            this.thisData = thisData;
-            this.thatData = thatData;
+            this.oldData = oldData;
+            this.newData = newData;
         }
 
         public boolean modified() {
-            if (thisData.discarded || thatData.discarded) {
-                log.warn("Property data has been discarded");
+            if (oldData.discarded || newData.discarded) {
+                // cannot calculate the diff any more -> return true.
+                String msg = " Diff cannot be calculated: " + ((oldData.discarded) ? "Old property data" : "New property data") + " have already been discarded.";
+                log.debug(msg);
                 return true;
             }
-            return diff(thisData, thatData);
+            return diff(oldData, newData);
         }
+
+        public void dispose() {
+            oldData.discardValues();
+        }
     }
 
 }
