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

13 lines
529 B
Diff
Raw Normal View History

2023-02-10 15:42:49 +01:00
--- 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 =