summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/irserver.cpp4
-rw-r--r--core/launcher/irserver.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/core/launcher/irserver.cpp b/core/launcher/irserver.cpp
index b22e064..2147d0a 100644
--- a/core/launcher/irserver.cpp
+++ b/core/launcher/irserver.cpp
@@ -16,2 +16,3 @@ IrServer::IrServer( QObject *parent, const char *name )
lib = 0;
+ iface = 0;
QString path = QPEApplication::qpeDir() + "/plugins/obex/";
@@ -21,3 +22,2 @@ IrServer::IrServer( QObject *parent, const char *name )
for ( it = list.begin(); it != list.end(); ++it ) {
- ObexInterface *iface = 0;
QLibrary *trylib = new QLibrary( path + *it );
@@ -48,2 +48,4 @@ IrServer::~IrServer()
{
+ if ( iface )
+ iface->release();
delete lib;
diff --git a/core/launcher/irserver.h b/core/launcher/irserver.h
index f9f682f..b3434dd 100644
--- a/core/launcher/irserver.h
+++ b/core/launcher/irserver.h
@@ -7,2 +7,3 @@ class QCopChannel;
class QLibrary;
+struct ObexInterface;
@@ -17,2 +18,3 @@ private:
QLibrary *lib;
+ ObexInterface *iface;
};