Commit 3321d4a1 authored by Pekka Vuorela's avatar Pekka Vuorela

[ssu] Fix memory leak on SsuDeviceInfo. Fixes JB#27777

parent 5f9af91c
......@@ -25,12 +25,16 @@
SsuDeviceInfo::SsuDeviceInfo(QString model): QObject()
{
boardMappings = new SsuSettings(SSU_BOARD_MAPPING_CONFIGURATION, SSU_BOARD_MAPPING_CONFIGURATION_DIR);
if (!model.isEmpty())
cachedModel = model;
}
SsuDeviceInfo::~SsuDeviceInfo()
{
delete boardMappings;
}
QStringList SsuDeviceInfo::adaptationRepos()
{
QStringList result;
......
......@@ -23,6 +23,9 @@ public:
* Initialize with device to override autodetection
*/
SsuDeviceInfo(QString model = "");
virtual ~SsuDeviceInfo();
/**
* Return the list of adaptations used for the set model
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment