Delete QNAM instance when it is not needed anymore.
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>
Thu, 31 Oct 2013 14:48:14 +0000 (14:48 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 4 Nov 2013 15:25:52 +0000 (16:25 +0100)
commitd426585ba65c6eb5c16af7accf54d7694310eccb
treea2d05398d9e86932575ccbfaf2121d6b93224482
parentb9913bdd8d13df7447ed7a0eba5df260a3a5dbdd
Delete QNAM instance when it is not needed anymore.

The QNAM is still shared in the thread but it may happen that is has to
be recreated. The main advantage of this change is that we clean
memory and that the QNAM is not destroyed after ~QCoreApplication.

Change-Id: I3dc6a5e7d85b2feebb498700986d27d203dbb89e
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
src/enginio_client/enginioclient.cpp
src/enginio_client/enginioclient_p.h
src/enginio_client/enginiofakereply.cpp
src/enginio_plugin/enginioplugin.cpp
tests/auto/enginioclient/tst_enginioclient.cpp