summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-01-27 17:59:51 +0000
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-01-27 18:10:40 +0000
commitefed46563307075fb19bac3177e9d3243eb39ef5 (patch)
tree4ded831e63770d6b9844d1fbccc827c4a83cef50
parent37376041d4c30588fc577c20ec91a14e819d439a (diff)
fdo#73464 - get relation BSTR allocation right.
Change-Id: Iceffca157643c2d73f581b655b39e09486c83897 Reviewed-on: https://gerrit.libreoffice.org/7700 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r--winaccessibility/source/UAccCOM/AccRelation.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/winaccessibility/source/UAccCOM/AccRelation.cxx b/winaccessibility/source/UAccCOM/AccRelation.cxx
index ec528301d82d..81e7fed1e037 100644
--- a/winaccessibility/source/UAccCOM/AccRelation.cxx
+++ b/winaccessibility/source/UAccCOM/AccRelation.cxx
@@ -206,9 +206,7 @@ BSTR CAccRelation::getRelationTypeBSTR(int type)
{IA2_RELATION_DESCRIBED_BY , 10},
};
- USES_CONVERSION;
-
- return (type >= 0 && type <= 10) ? map[type].string : _T("");
+ return ::SysAllocString((type >= 0 && type <= 10) ? map[type].string : _T(""));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */