diff options
-rw-r--r-- | src/mir_core/src/mstring.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_core/src/mstring.cpp b/src/mir_core/src/mstring.cpp index 3cb52eef61..1ce935a2e3 100644 --- a/src/mir_core/src/mstring.cpp +++ b/src/mir_core/src/mstring.cpp @@ -68,7 +68,8 @@ MIR_CORE_DLL(CMStringData*) mirstr_allocate(int nChars, int nCharSize) MIR_CORE_DLL(void) mirstr_free(CMStringData *pData)
{
- free(pData);
+ if (pData != &m_nil)
+ free(pData);
}
MIR_CORE_DLL(CMStringData*) mirstr_realloc(CMStringData* pData, int nChars, int nCharSize)
|