Fix memory leaks
This commit is contained in:
@@ -72,11 +72,14 @@ TrackSlider::TrackSlider(QWidget* parent)
|
||||
|
||||
TrackSlider::~TrackSlider() {
|
||||
delete ui_;
|
||||
#ifdef HAVE_MOODBAR
|
||||
if (moodbar_style_) moodbar_style_->deleteLater();
|
||||
#endif
|
||||
}
|
||||
|
||||
void TrackSlider::SetApplication(Application* app) {
|
||||
#ifdef HAVE_MOODBAR
|
||||
moodbar_style_ = new MoodbarProxyStyle(app, ui_->slider);
|
||||
if (!moodbar_style_) moodbar_style_ = new MoodbarProxyStyle(app, ui_->slider);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user