diff --git a/src/gui/RomImageWidget.cxx b/src/gui/RomImageWidget.cxx index d615cfea6..05edbfd5e 100644 --- a/src/gui/RomImageWidget.cxx +++ b/src/gui/RomImageWidget.cxx @@ -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();