fixed segfault in edit button
This commit is contained in:
parent
abfc59d063
commit
4f4bc90bf8
|
@ -30,6 +30,10 @@ EditSample::EditSample(const std::string& audioFile_, QWidget *parent) : QDialog
|
|||
}
|
||||
|
||||
EditSample::~EditSample() {
|
||||
// here was a race condition: when the sample is played and the current possition is updated
|
||||
// after this object is destroyed there will be a segfault.
|
||||
stop();
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue