[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - winaccessibility/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 26 18:27:37 UTC 2018
winaccessibility/source/UAccCOM/MAccessible.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5af970a53a4965f60e0bfe194f198cfb2fe775f0
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 14:14:20 2018 +0100
Commit: Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Fri Oct 26 20:27:08 2018 +0200
alloc should have been free
Change-Id: I325a815ff17446bc389f889a028f5e2ced57d7e7
Reviewed-on: https://gerrit.libreoffice.org/62042
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index a560cedfcef0..63ad985401d9 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -1074,7 +1074,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;
}
@@ -1108,7 +1108,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;
More information about the Libreoffice-commits
mailing list