]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.cpp
only called once
[lyx.git] / src / graphics / GraphicsCache.cpp
index 10f9fc7a73b8f8141a77f7ffa9faeebafdf9ad32..740ca053ce564c3e775f83cc664f2fbc457dc00f 100644 (file)
@@ -56,7 +56,9 @@ Cache::Cache()
 
 
 Cache::~Cache()
-{}
+{
+       delete pimpl_;
+}
 
 
 std::vector<string> Cache::loadableFormats() const
@@ -69,9 +71,8 @@ void Cache::add(FileName const & file) const
 {
        // Is the file in the cache already?
        if (inCache(file)) {
-               LYXERR(Debug::GRAPHICS) << "Cache::add(" << file << "):\n"
-                                       << "The file is already in the cache."
-                                       << std::endl;
+               LYXERR(Debug::GRAPHICS, "Cache::add(" << file << "):\n"
+                                       << "The file is already in the cache.");
                return;
        }