diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2002-09-21 14:12:08 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2002-09-21 14:12:08 +0000 |
commit | 9f3df01392cdaf8120bf67c5034e507242be90e7 (patch) | |
tree | a7d23af0305d02475ddd478491dc621426aa9018 /lily/chord-tremolo-iterator.cc | |
parent | c82da428296a290d2728eac6e36de3b3b80d14d1 (diff) |
front port
Diffstat (limited to 'lily/chord-tremolo-iterator.cc')
-rw-r--r-- | lily/chord-tremolo-iterator.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lily/chord-tremolo-iterator.cc b/lily/chord-tremolo-iterator.cc index b4d7696968..fd456b6ac3 100644 --- a/lily/chord-tremolo-iterator.cc +++ b/lily/chord-tremolo-iterator.cc @@ -35,9 +35,12 @@ Chord_tremolo_iterator::Chord_tremolo_iterator (Chord_tremolo_iterator const &sr : Music_iterator (src) { factor_ = src.factor_; - child_iter_ = src.child_iter_ ? src.child_iter_->clone () : 0; - if (child_iter_) - scm_gc_unprotect_object (child_iter_->self_scm()); + child_iter_ = 0; + if (src.child_iter_) + { + child_iter_ = src.child_iter_->clone (); + scm_gc_unprotect_object (child_iter_->self_scm()); + } } void @@ -87,7 +90,5 @@ Chord_tremolo_iterator::try_music_in_children (Music *m) const return child_iter_->try_music (m); } - - IMPLEMENT_CTOR_CALLBACK (Chord_tremolo_iterator); |