summaryrefslogtreecommitdiffstats
path: root/qt-ui/tagwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/tagwidget.cpp')
-rw-r--r--qt-ui/tagwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/tagwidget.cpp b/qt-ui/tagwidget.cpp
index 457f66c74..2b180bab6 100644
--- a/qt-ui/tagwidget.cpp
+++ b/qt-ui/tagwidget.cpp
@@ -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);
}