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>
This commit is contained in:
parent
ed7d59c0a2
commit
41c47fdd19
@ -107,7 +107,7 @@ public:
|
||||
{
|
||||
if (!deref()) {
|
||||
(*this)->destroyAll();
|
||||
free(d);
|
||||
Data::deallocate(d);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user