|
|
|
@ -1071,13 +1071,20 @@ TQStringData::TQStringData(TQChar *u, uint l, uint m) : TQShared(),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TQStringData::~TQStringData() {
|
|
|
|
|
if ( unicode ) delete[] ((char*)unicode);
|
|
|
|
|
if ( unicode ) {
|
|
|
|
|
delete[] ((char*)unicode);
|
|
|
|
|
}
|
|
|
|
|
if ( ascii && security_unpaged ) {
|
|
|
|
|
munlock(ascii, LINUX_MEMLOCK_LIMIT_BYTES);
|
|
|
|
|
}
|
|
|
|
|
if ( ascii ) delete[] ascii;
|
|
|
|
|
if ( ascii ) {
|
|
|
|
|
delete[] ascii;
|
|
|
|
|
}
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|
if ( mutex ) delete mutex;
|
|
|
|
|
if ( mutex ) {
|
|
|
|
|
delete mutex;
|
|
|
|
|
mutex = NULL;
|
|
|
|
|
}
|
|
|
|
|
#endif // QT_THREAD_SUPPORT
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1675,6 +1682,13 @@ TQString::TQString( TQStringData* dd, bool /* dummy */ ) {
|
|
|
|
|
|
|
|
|
|
TQString::~TQString()
|
|
|
|
|
{
|
|
|
|
|
#if defined(QT_CHECK_RANGE)
|
|
|
|
|
if (!d) {
|
|
|
|
|
tqWarning( "TQString::~TQString: Double free or delete detected!" );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|
d->mutex->lock();
|
|
|
|
|
#endif // QT_THREAD_SUPPORT
|
|
|
|
@ -1684,6 +1698,7 @@ TQString::~TQString()
|
|
|
|
|
d->mutex->unlock();
|
|
|
|
|
#endif // QT_THREAD_SUPPORT
|
|
|
|
|
d->deleteSelf();
|
|
|
|
|
d = NULL;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|