Fixed many memory leaks
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "appdata.h"
|
||||
#include "helpers.h"
|
||||
#include "simulatordialog.h"
|
||||
#include "simulatorinterface.h"
|
||||
#include "flashinterface.h"
|
||||
|
||||
const QColor colors[C9X_MAX_CURVES] = {
|
||||
@@ -905,7 +906,9 @@ CompanionIcon::CompanionIcon(QString baseimage)
|
||||
|
||||
void startSimulation(QWidget * parent, RadioData & radioData, int modelIdx)
|
||||
{
|
||||
if (GetEepromInterface()->getSimulator()) {
|
||||
SimulatorInterface * si = GetEepromInterface()->getSimulator();
|
||||
if (si) {
|
||||
delete si;
|
||||
RadioData * simuData = new RadioData(radioData);
|
||||
unsigned int flags = 0;
|
||||
if (modelIdx >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user