Use delete instead of free() in c++

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2013-12-11 00:53:26 +01:00 committed by Dirk Hohndel
parent 1e92a8e648
commit 5b61409358

View file

@ -166,7 +166,7 @@ void TagWidget::keyPressEvent(QKeyEvent *e) {
if (e->key() == Qt::Key_Tab) { // let's pretend this is a comma instead
QKeyEvent *fakeEvent = new QKeyEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(","));
GroupedLineEdit::keyPressEvent(fakeEvent);
free(fakeEvent);
delete fakeEvent;
} else {
GroupedLineEdit::keyPressEvent(e);
}