diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 14:14:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-20 13:48:06 +0200 |
commit | d585e572b5d4fc7113c0d0380f16427c1e3448d8 (patch) | |
tree | 199b9aa9d57fdd91ce65f1125ffbfc14d8bb44f0 /winaccessibility | |
parent | 190a1394c2dd2aa338559c99a23ec3c62d29a2eb (diff) |
alloc should have been free
Change-Id: I325a815ff17446bc389f889a028f5e2ced57d7e7
Reviewed-on: https://gerrit.libreoffice.org/62008
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/MAccessible.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx index 1f6e36531d17..0a75d9a4e5a8 100644 --- a/winaccessibility/source/UAccCOM/MAccessible.cxx +++ b/winaccessibility/source/UAccCOM/MAccessible.cxx @@ -1075,7 +1075,7 @@ STDMETHODIMP CMAccessible::put_accValue(VARIANT varChild, BSTR szValue) { if(varChild.lVal==CHILDID_SELF) { - SysAllocString(m_pszValue); + SAFE_SYSFREESTRING(m_pszValue); m_pszValue=SysAllocString(szValue); return S_OK; } @@ -1109,7 +1109,7 @@ STDMETHODIMP CMAccessible::Put_XAccName(const OLECHAR __RPC_FAR *pszName) return E_INVALIDARG; } - SAFE_SYSFREESTRING(m_pszName);//?? + SAFE_SYSFREESTRING(m_pszName); m_pszName = SysAllocString(pszName); if(m_pszName==nullptr) return E_FAIL; |