summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Garcia <garcia.6l20@gmail.com>2019-10-11 13:14:06 +0200
committerSylvain Garcia <garcia.6l20@gmail.com>2019-10-14 10:39:29 +0200
commit52bce52413763ead7759f8c2e374a40bb82f058f (patch)
tree4925dfae13c820a61a7f5596acfcd40c5fcc253b
parentf04a6809b1d83bb7c0ae0f42251d3a31510f1be9 (diff)
Fix memory leak in QHttpServerRequest5.15
Using QSharedPointer rather than raw pointer for private data [ChangeLog][QHttpServerRequest][Fix QHttpServerRequest memory leak] Fixed: memory leak in QHttpServerRequest Change-Id: I419ec22e56f199677d058938cee046a60a3c2450 Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
-rw-r--r--src/httpserver/qhttpserverrequest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver/qhttpserverrequest.h b/src/httpserver/qhttpserverrequest.h
index eadb5f7..8317e70 100644
--- a/src/httpserver/qhttpserverrequest.h
+++ b/src/httpserver/qhttpserverrequest.h
@@ -99,7 +99,7 @@ private:
explicit QHttpServerRequest(const QHostAddress &remoteAddress);
- QHttpServerRequestPrivate *d = nullptr;
+ QSharedPointer<QHttpServerRequestPrivate> d;
};
QT_END_NAMESPACE