diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-09-02 10:49:13 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-03-23 11:59:17 +0100 |
commit | a956b7a9b7dc5329ac1466c21dc74d471e7ca6f1 (patch) | |
tree | 3aefd9f5136c0469d30003911d8cae7386742ba5 | |
parent | 49ddb4b28af24ac2a0d9c07a910443dece2550ec (diff) |
QArrayDataPointer: skip deallocate detour
We never made use of it since its introduction in 5.0, and calling free
directly reduces the size of libQtCore by roughly ~100kb.
Change-Id: I7dbdac83c82fa38d1833a4677fc83ebe809a11ef
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/corelib/tools/qarraydatapointer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qarraydatapointer.h b/src/corelib/tools/qarraydatapointer.h index f0b689b499..5e89fd0026 100644 --- a/src/corelib/tools/qarraydatapointer.h +++ b/src/corelib/tools/qarraydatapointer.h @@ -92,7 +92,7 @@ public: { if (!deref()) { (*this)->destroyAll(); - Data::deallocate(d); + free(d); } } |