void-packages/srcpkgs/rosegarden/patches/fix-use-after-free-lilypad....

13 lines
529 B
Diff

--- a/src/document/io/LilyPondExporter.cpp
+++ b/src/document/io/LilyPondExporter.cpp
@@ -462,7 +462,8 @@ LilyPondExporter::handleStartingPostEven
}
// Duration
- const char * d = restsDuration.toStdString().data();
+ std::string tmp = restsDuration.toStdString();
+ const char * d = tmp.data();
// Indication
const char * in =