Skip to content

Commit cf12826

Browse files
a12ethiagomacieira
authored andcommitted
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. Pick-to: 6.8 Change-Id: I2ef00a897f56a32a0f1188f69f159834e6ca5b64 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 41c47fd)
1 parent 1921783 commit cf12826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/corelib/tools/qarraydatapointer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct QArrayDataPointer
107107
{
108108
if (!deref()) {
109109
(*this)->destroyAll();
110-
free(d);
110+
Data::deallocate(d);
111111
}
112112
}
113113

0 commit comments

Comments
 (0)