mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 07:15:12 +03:00
Fixed many memory leaks
This commit is contained in:
parent
b7cc3a5ef2
commit
df954ae483
13 changed files with 76 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue