summaryrefslogtreecommitdiff
path: root/core/launcher/irserver.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/irserver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/irserver.cpp4
1 files changed, 3 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
@@ -15,4 +15,5 @@ IrServer::IrServer( QObject *parent, const char *name )
{
lib = 0;
+ iface = 0;
QString path = QPEApplication::qpeDir() + "/plugins/obex/";
QDir dir( path, "lib*.so" );
@@ -20,5 +21,4 @@ IrServer::IrServer( QObject *parent, const char *name )
QStringList::Iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
- ObexInterface *iface = 0;
QLibrary *trylib = new QLibrary( path + *it );
qDebug("trying lib %s", (path + (*it)).latin1() );
@@ -47,4 +47,6 @@ IrServer::IrServer( QObject *parent, const char *name )
IrServer::~IrServer()
{
+ if ( iface )
+ iface->release();
delete lib;
}