aboutsummaryrefslogtreecommitdiffstats
path: root/src/ivicore/qiviservicemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivicore/qiviservicemanager.cpp')
-rw-r--r--src/ivicore/qiviservicemanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ivicore/qiviservicemanager.cpp b/src/ivicore/qiviservicemanager.cpp
index 0adea74..1bb9aa6 100644
--- a/src/ivicore/qiviservicemanager.cpp
+++ b/src/ivicore/qiviservicemanager.cpp
@@ -76,7 +76,7 @@ namespace qtivi_helper {
static const QString debugSuffixLiteral = QStringLiteral("_debug");
#endif
- QString backendBaseName(const QString fileName)
+ QString backendBaseName(const QString &fileName)
{
if (fileName.isEmpty())
return fileName;
@@ -285,9 +285,8 @@ void QIviServiceManagerPrivate::unloadAllBackends()
if (backend->loader) {
backend->loader->unload();
delete backend->loader;
- } else if (backend->interfaceObject) {
- delete backend->interfaceObject;
}
+ delete backend->interfaceObject;
delete backend->proxyServiceObject;
i.remove();