From f1317a5d94475516a3a9dc6822383cbedffdcf1b Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Thu, 29 May 2003 15:59:46 +0000 Subject: [PATCH] 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 --- include/wx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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