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:
parent
8ecf21b7db
commit
f1317a5d94
@ -201,7 +201,7 @@ struct WXDLLEXPORT wxStringData
|
||||
// we must not inline deallocation since allocation is not inlined
|
||||
void Free();
|
||||
#else
|
||||
void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(); }
|
||||
void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(this); }
|
||||
#endif
|
||||
|
||||
// if we had taken control over string memory (GetWriteBuf), it's
|
||||
|
Loading…
Reference in New Issue
Block a user