]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/font-metric.cc
* Fix noopt support to use --disable-optimising as ./configure does crazy things.
[lilypond.git] / lily / font-metric.cc
index 458528dd2e4dce9a6994a6975c2f0a86ae570ebf..4b4c2f802db26a0c8dc715d3153edca660c75398 100644 (file)
@@ -106,6 +106,9 @@ Font_metric::mark_smob (SCM s)
 {
   Font_metric *m = (Font_metric *) SCM_CELL_WORD_1 (s);
   m->derived_mark ();
+  // we must do this to avoid s being optimized out and garbage
+  // collected; leading to a segfault above.
+  scm_remember_upto_here_1(s);
   return m->description_;
 }