mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix a tiny memory leak, add_instant_xml() copies the node
This commit is contained in:
parent
e42699600b
commit
f443626daa
1 changed files with 3 additions and 3 deletions
|
|
@ -4210,9 +4210,9 @@ Session::save_snapshot_name (const std::string & n)
|
||||||
*/
|
*/
|
||||||
instant_xml ("LastUsedSnapshot");
|
instant_xml ("LastUsedSnapshot");
|
||||||
|
|
||||||
XMLNode* last_used_snapshot = new XMLNode ("LastUsedSnapshot");
|
XMLNode last_used_snapshot ("LastUsedSnapshot");
|
||||||
last_used_snapshot->set_property ("name", n);
|
last_used_snapshot.set_property ("name", n);
|
||||||
add_instant_xml (*last_used_snapshot, false);
|
add_instant_xml (last_used_snapshot, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue