summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qconnectionfactories.cpp
diff options
context:
space:
mode:
authorBrett Stottlemyer <bstottle@ford.com>2015-12-25 17:14:28 -0500
committerBrett Stottlemyer <bstottle@ford.com>2015-12-31 15:00:45 +0000
commit3a6414a7532160d0c4aab4ed78518bd56c351e4f (patch)
treed54aa4bd764f0c245af504df20046f3cc5e8cb4b /src/remoteobjects/qconnectionfactories.cpp
parentaf375b16c3c000be8bace33f9d25f7c070644c3b (diff)
Use parent to handle ClientIoDevice delete
A previous change added the parent QObject, but we still did manual close()/delete. Change-Id: I8e4e951b6da597dd14a9251c0db206b3ca8acd58 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Kevin Funk <kfunk@kde.org> Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/remoteobjects/qconnectionfactories.cpp')
-rw-r--r--src/remoteobjects/qconnectionfactories.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remoteobjects/qconnectionfactories.cpp b/src/remoteobjects/qconnectionfactories.cpp
index 8a6eb9e..69ce9e3 100644
--- a/src/remoteobjects/qconnectionfactories.cpp
+++ b/src/remoteobjects/qconnectionfactories.cpp
@@ -79,6 +79,8 @@ ClientIoDevice::ClientIoDevice(QObject *parent)
ClientIoDevice::~ClientIoDevice()
{
+ if (!m_isClosing)
+ close();
}
void ClientIoDevice::close()