diff options
| author | Aurélien Brooke <aurelien@bahiasoft.fr> | 2025-01-28 08:14:01 +0100 |
|---|---|---|
| committer | Aurélien Brooke <aurelien@bahiasoft.fr> | 2025-01-30 10:38:55 +0100 |
| commit | 41c47fdd192cafa001b6e67defc314af5c1d6316 (patch) | |
| tree | e6c56eb3b39062344642a6703d7e3468bf2433ad /src/corelib/tools/qarraydatapointer.h | |
| parent | ed7d59c0a266bf578c3a9203c0107ab2ed29f067 (diff) | |
QArrayDataPointer: use Data::deallocate() instead of raw free()
Be symmetrical with the Data::allocate() in the constructor.
This is not strictly a no-op since we now call the exported symbol
QArrayData::deallocate() instead of inlining a free() call. However, it
allows future sized-free optimizations.
Change-Id: I2ef00a897f56a32a0f1188f69f159834e6ca5b64
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydatapointer.h')
| -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 75ca2af3a0d..c7731748b20 100644 --- a/src/corelib/tools/qarraydatapointer.h +++ b/src/corelib/tools/qarraydatapointer.h @@ -107,7 +107,7 @@ public: { if (!deref()) { (*this)->destroyAll(); - free(d); + Data::deallocate(d); } } |
