]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dimension-cache.cc
Run `make grand-replace'.
[lilypond.git] / lily / dimension-cache.cc
index fa5c3d0dbc56441116f1bb9b1cba1866914982b6..90acd455ea989831c7610fe05ba634936e7d90cd 100644 (file)
@@ -3,11 +3,12 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1998--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1998--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 
 #include "dimension-cache.hh"
+
 #include "warn.hh"
 #include "grob.hh"
 
@@ -33,7 +34,15 @@ Dimension_cache::init ()
 }
 
 Dimension_cache::~Dimension_cache ()
+{
+  clear ();
+}
+
+void
+Dimension_cache::clear ()
 {
   delete extent_;
   delete offset_;
+  extent_ = 0;
+  offset_ = 0;
 }