X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ecf21b7db119d71e33e2651027570c4f91a690b..ceb71775b49c111a201765e736f543da72d902e4:/include/wx/string.h?ds=inline diff --git a/include/wx/string.h b/include/wx/string.h index 229b69b2f2..d082d97b73 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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