summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/scandialog.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/scandialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp
index bd7d23c..f8f7b15 100644
--- a/noncore/net/opietooth/manager/scandialog.cpp
+++ b/noncore/net/opietooth/manager/scandialog.cpp
@@ -147,6 +147,7 @@ namespace OpieTooth {
147 } 147 }
148 148
149 QList<RemoteDevice> *deviceList = new QList<RemoteDevice>; 149 QList<RemoteDevice> *deviceList = new QList<RemoteDevice>;
150 deviceList->setAutoDelete(true);
150 151
151 QListViewItemIterator it( ListView1 ); 152 QListViewItemIterator it( ListView1 );
152 for ( ; it.current(); ++it ) { 153 for ( ; it.current(); ++it ) {
@@ -156,6 +157,7 @@ namespace OpieTooth {
156 } 157 }
157 } 158 }
158 emit selectedDevices( *deviceList ); 159 emit selectedDevices( *deviceList );
160 delete deviceList;
159 } 161 }
160 162
161/* 163/*