git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20758
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// we must not inline deallocation since allocation is not inlined
void Free();
#else
// 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
#endif
// if we had taken control over string memory (GetWriteBuf), it's