mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
do not free the shared empty and shared null QByteArray data
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
00176210c4
commit
57f3d62aa0
1 changed files with 2 additions and 1 deletions
|
@ -1501,7 +1501,8 @@ QByteArray &QByteArray::fill(char ch, int size)
|
|||
|
||||
void QByteArray::freeData(Data *d)
|
||||
{
|
||||
free(d);
|
||||
if (d != &shared_empty && d != &shared_null)
|
||||
::free(d);
|
||||
}
|
||||
|
||||
void QByteArray::reallocData(int alloc)
|
||||
|
|
Loading…
Add table
Reference in a new issue