summaryrefslogtreecommitdiff
path: root/src/webinspectordock.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-20 02:27:55 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-20 02:27:55 +0100
commit48d949fb77c1d932c93448f06d59ea70f852589b (patch)
tree4de604e3a196e13d51894e7b1a787992333c6696 /src/webinspectordock.cpp
parentfix close tab when javascript:self.close() (diff)
downloadrekonq-48d949fb77c1d932c93448f06d59ea70f852589b.tar.xz
Some leaks fixed in new code
Diffstat (limited to 'src/webinspectordock.cpp')
-rw-r--r--src/webinspectordock.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/webinspectordock.cpp b/src/webinspectordock.cpp
index 2c17a607..55ae11cf 100644
--- a/src/webinspectordock.cpp
+++ b/src/webinspectordock.cpp
@@ -44,8 +44,7 @@ WebInspectorDock::WebInspectorDock(QString title, QWidget *parent)
: QDockWidget(title, parent)
{
setObjectName("webInspectorDock");
- QWebInspector *inspector = new QWebInspector(this);
- setWidget(inspector);
+ setWidget( new QWebInspector(this) );
}
void WebInspectorDock::closeEvent(QCloseEvent *event)