summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Strebkov <fasked@gmail.com>2021-12-19 13:18:56 +0400
committerAlexander Strebkov <fasked@gmail.com>2021-12-19 13:18:56 +0400
commitb7f9fdffbb7406602405b41609f94766d9ac0634 (patch)
treeb03fee05dd376c2c304b3b9939b1a60352c2b799 /src
parent89e759b9b141c2f2cf670eea4194222201c8ff2b (diff)
Update mainwindow.cpp
Delete context menu after exec to prevent "memory eating"
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d792c6ed..bc359f06 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -947,6 +947,7 @@ void MainWindow::showBrowserContextMenu(const QPoint &pos) {
QPoint globalPos = ui->textBrowser->viewport()->mapToGlobal(pos);
contextMenu->exec(globalPos);
+ delete contextMenu;
}
/**