Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete leaking controls #42

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/dlgprefcontrols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ DlgPrefControls::DlgPrefControls(QWidget * parent, MixxxApp * mixxx,

DlgPrefControls::~DlgPrefControls()
{
delete m_pControlPositionDisplay;

foreach (ControlObjectThreadMain* pControl, m_rateControls) {
delete pControl;
}
Expand Down
5 changes: 3 additions & 2 deletions src/engine/positionscratchcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ PositionScratchController::PositionScratchController(const char* pGroup)
}

PositionScratchController::~PositionScratchController() {
delete m_pScratchEnable;
delete m_pVelocityController;
delete m_pRateIIFilter;
delete m_pVelocityController;
delete m_pScratchPosition;
delete m_pScratchEnable;
}

//volatile double _p = 0.3;
Expand Down
11 changes: 7 additions & 4 deletions src/engine/vinylcontrolcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ VinylControlControl::VinylControlControl(const char* pGroup, ConfigObject<Config
}

VinylControlControl::~VinylControlControl() {
delete m_pControlVinylSignalEnabled;
delete m_pControlVinylCueing;
delete m_pControlVinylMode;
delete m_pControlVinylWantEnabled;
delete m_pControlVinylEnabled;
delete m_pControlVinylScratching;
delete m_pControlVinylSeek;
delete m_pControlVinylStatus;
delete m_pControlVinylSpeedType;
delete m_pControlVinylEnabled;
delete m_pControlVinylMode;
delete m_pControlVinylCueing;
delete m_pControlVinylStatus;
}

void VinylControlControl::trackLoaded(TrackPointer pTrack) {
Expand Down
4 changes: 3 additions & 1 deletion src/recording/recordingmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ RecordingManager::RecordingManager(ConfigObject<ConfigValue>* pConfig, EngineMas
RecordingManager::~RecordingManager()
{
qDebug() << "Delete RecordingManager";
delete m_recReadyCO;

delete m_recReady;
delete m_recReadyCO;
delete m_pToggleRecording;
}

QString RecordingManager::formatDateTimeForFilename(QDateTime dateTime) const {
Expand Down