Quote Originally Posted by anda_skoa View Post
You needlessly create a new QNetworkAccessManager on each call to getData()
Moreover, you never delete it. So each call to getData() leaks a QNetworkAccessManager instance.
Since you already have m_networkManager as an instance member, only create one QNAM instance and re-use it.
_
Am extremely sorry for the confusion, actually I have only one instance of QNAM running and I keep re-using it. I modified the code to put it here and so did that mistake. Have rectified it, thanks for pointing it out.