]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/ly-smobs.icc
Don't assign 'safe' values to self_scm_ outside of smobify_self
[lilypond.git] / lily / include / ly-smobs.icc
index 695fc465ec3e22a3ab3c3f531c2a087d9ee2e16f..3ff54cc49e45ca5f4a322d437b2b98d9ad21ac95 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1999--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1999--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
       goodly sure                                                       \
     */                                                                  \
     SCM s;                                                              \
+    self_scm_ = SCM_UNDEFINED;                                         \
     SCM_NEWSMOB (s, CL::smob_tag_, this);                               \
     self_scm_ = s;                                                      \
     scm_gc_register_collectable_memory (this, sizeof (CL), #CL " smob"); \