Fixed segfault; reference to string was removed after it was assigned.

This commit is contained in:
Stephen Anthony 2022-08-17 09:40:13 -02:30
parent 540d503e7f
commit ea02ba769a
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ void RomImageWidget::parseProperties(const FSNode& node, bool full)
}
else
{
const string& oldFileName = myImageList.size() ? myImageList[0].getPath() : EmptyString;
const string oldFileName = myImageList.size() ? myImageList[0].getPath() : EmptyString;
// Try to find all snapshots by property and ROM file name
myImageList.clear();