File noteedit-2.8.1-undefined-code.patch of Package noteedit

--- noteedit/filehandler.cpp
+++ noteedit/filehandler.cpp
@@ -546,9 +546,9 @@
 	while (written_voices);
 	out_.close();
 	for (i = 0, staff_elem = stafflist->first(); staff_elem; staff_elem = stafflist->next(), i++) {
-		delete pending_multi_rests_[i];
+		delete [] pending_multi_rests_[i];
 	}
-	delete pending_multi_rests_;
+	delete [] pending_multi_rests_;
 
 	if (!showErrors) return true;
 
openSUSE Build Service is sponsored by