Skip to content

Commit

Permalink
Set the parent to avoid a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
paperbagcorner authored and hatstand committed Jul 6, 2018
1 parent 3e53e23 commit 10d4c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ripper/ripcddialog.cpp
Expand Up @@ -23,6 +23,7 @@
#include <QLineEdit>
#include <QMessageBox>
#include <QSettings>
#include <QUrl>

#include "config.h"
#include "core/logging.h"
Expand Down Expand Up @@ -54,7 +55,7 @@ RipCDDialog::RipCDDialog(QWidget* parent)
ui_(new Ui_RipCDDialog),
ripper_(new Ripper(this)),
working_(false),
loader_(new CddaSongLoader) {
loader_(new CddaSongLoader(QUrl(), this)) {
// Init
ui_->setupUi(this);

Expand Down

0 comments on commit 10d4c50

Please sign in to comment.