]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.cpp
this we don't need anymore
[lyx.git] / src / LayoutFile.cpp
index d2c1da37490e50f7ff157f2163936d66aa92ca92..8f0d9210b52245c4e704da30dc78c87ddf8ea425 100644 (file)
@@ -47,6 +47,14 @@ LayoutFile::LayoutFile(string const & fn, string const & cln,
        texClassAvail_ = texClassAvail;
 }
 
+LayoutFileList::~LayoutFileList()
+{
+       ClassMap::const_iterator it = classmap_.begin();
+       ClassMap::const_iterator en = classmap_.end();
+       for (; it != en; ++it) {
+               delete it->second;
+       }
+}
 
 LayoutFileList & LayoutFileList::get() 
 {