]> git.cworth.org Git - scherzo/blobdiff - score.c
Add support for recognizing inverted chords.
[scherzo] / score.c
diff --git a/score.c b/score.c
index 25187ba06e19a7ead61a27aae5fc77b6c351828e..fe7622d85e4acd5c4fc45cd707df961017995380 100644 (file)
--- a/score.c
+++ b/score.c
@@ -528,6 +528,8 @@ score_add_chord (score_staff_t *staff,
     if (chord == NULL)
        return NULL;
 
+    talloc_steal (chord, name);
+
     chord->staff = staff;
     chord->name = talloc_strdup (chord, name);