fixed error in inlined (standard) version of wxStringData deallocation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2003-05-29 15:59:46 +00:00
parent 8ecf21b7db
commit f1317a5d94

View File

@ -201,7 +201,7 @@ struct WXDLLEXPORT wxStringData
// we must not inline deallocation since allocation is not inlined // we must not inline deallocation since allocation is not inlined
void Free(); void Free();
#else #else
void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(); } void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(this); }
#endif #endif
// if we had taken control over string memory (GetWriteBuf), it's // if we had taken control over string memory (GetWriteBuf), it's