Index: /branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
===================================================================
--- /branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h	(revision 818)
+++ /branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h	(revision 819)
@@ -2542,4 +2542,7 @@
     if ( m_paramsetMap.find(psId) != m_paramsetMap.end() )
     {
+#if Q0078_ADD_LAYER_SETS
+      m_paramsetMap.erase(psId);
+#endif
       delete m_paramsetMap[psId];
     }
@@ -2574,4 +2577,7 @@
     {
       m_paramsetMap.erase(psId);
+#if Q0078_ADD_LAYER_SETS
+      delete m_paramsetMap[psId];
+#endif
     }
   }
