summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/browsermainwindow.cpp3
-rw-r--r--src/tabwidget.cpp5
-rw-r--r--src/urlbar.cpp3
3 files changed, 5 insertions, 6 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp
index 6ca9c256..d6327300 100644
--- a/src/browsermainwindow.cpp
+++ b/src/browsermainwindow.cpp
@@ -111,6 +111,7 @@ BrowserMainWindow::~BrowserMainWindow()
{
m_autoSaver->changeOccurred();
m_autoSaver->saveIfNeccessary();
+ delete m_navigationBar;
}
@@ -390,7 +391,7 @@ void BrowserMainWindow::setupToolBar()
m_navigationBar->addAction(m_goHome);
connect(m_goHome, SIGNAL(triggered()), this, SLOT(slotHome()));
- m_navigationBar->addWidget(m_tabWidget->lineEditStack());
+ m_navigationBar->addWidget( m_tabWidget->lineEditStack() );
m_searchBar = new SearchBar(m_navigationBar);
m_navigationBar->addWidget(m_searchBar);
diff --git a/src/tabwidget.cpp b/src/tabwidget.cpp
index 01f9bd6c..72574596 100644
--- a/src/tabwidget.cpp
+++ b/src/tabwidget.cpp
@@ -274,7 +274,9 @@ TabWidget::TabWidget(QWidget *parent)
TabWidget::~TabWidget()
{
-}
+ delete m_lineEditCompleter;
+ delete m_recentlyClosedTabsMenu;
+}
void TabWidget::clear()
@@ -335,7 +337,6 @@ void TabWidget::currentChanged(int index)
if (!webView)
return;
-// FIXME
Q_ASSERT( m_lineEdits->count() == count() );
WebView *oldWebView = this->webView(m_lineEdits->currentIndex());
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index 1ee02dc3..098ba027 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -54,9 +54,6 @@ UrlBar::UrlBar(QWidget *parent)
UrlBar::~UrlBar()
{
- delete m_webView;
- delete m_iconLabel;
- delete m_lineEdit;
}