src/gui/imageinfo.cpp fix heap-use-after-free

This commit is contained in:
Jacek Jendrzej
2015-12-26 17:36:58 +01:00
parent ddb3c15d4b
commit 93e302211e

View File

@@ -249,8 +249,8 @@ void CImageInfo::InitInfoData()
#ifdef IMAGE_VERSION #ifdef IMAGE_VERSION
version_string = IMAGE_VERSION; version_string = IMAGE_VERSION;
#else #else
const char * _version = config.getString("version", "U000000000000000").c_str(); std::string _version = config.getString("version", "U000000000000000").c_str();
static CFlashVersionInfo versionInfo(_version); static CFlashVersionInfo versionInfo(_version.c_str());
version_string = versionInfo.getReleaseCycle(); version_string = versionInfo.getReleaseCycle();
version_string += " "; version_string += " ";