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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 93e302211e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-26 (Sat, 26 Dec 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2015-12-26 17:36:58 +01:00
parent 86cc4a8fb9
commit c54fffcc8d

View File

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