13
0

Use g_remove instead of sys::remove in Session::remove_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12870 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2012-06-23 05:08:31 +00:00
parent 695b666430
commit b5d1dbf62f

View File

@ -691,7 +691,10 @@ Session::remove_state (string snapshot_name)
}
// and delete it
sys::remove (xml_path);
if (g_remove (xml_path.c_str()) != 0) {
error << string_compose(_("Could not remove state file at path \"%1\" (%2)"),
xml_path, g_strerror (errno)) << endmsg;
}
}
#ifdef HAVE_JACK_SESSION