]> git.lyx.org Git - lyx.git/commitdiff
Removed an incorrect assert in GraphicsCache.
authorBaruch Even <baruch@lyx.org>
Wed, 7 Mar 2001 12:43:48 +0000 (12:43 +0000)
committerBaruch Even <baruch@lyx.org>
Wed, 7 Mar 2001 12:43:48 +0000 (12:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1700 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/ChangeLog
src/graphics/GraphicsCache.C

index 16696974eaa521063f9645e88a06539cc79dc09e..1bdbd213c427d645e0f6d2ebcb8a2d51432e0818 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-07  Baruch Even  <baruch@lyx.org>
+
+       * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
+       was false and it's not needed anyhow since the shared_ptr's in the cache
+       will destroy everything on exit.
+
 2001-02-28  Baruch Even  <baruch@ev-en.org>
 
        * GraphicsCache.h:
index cda36db9fc6b13059ce32149e82567222408a171..8692afebeff58e4ee3e9cbb52f5e9cf5ccacade6 100644 (file)
@@ -30,8 +30,7 @@ GraphicsCache::getInstance()
 
 GraphicsCache::~GraphicsCache()
 {
-       // The map elements should have already been eliminated.
-       Assert(cache.empty());
+       // All elements are destroyed by the shared_ptr's in the map.
 }