Kaydet (Commit) c8383757 authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: Invalid read from sequence released during assignation

Change-Id: I3bb665e15e6f4ae7ada94a33a58633bd548d34f4
üst aa2f6cf0
......@@ -412,16 +412,17 @@ void Test::testFdo53113()
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
uno::Sequence<beans::PropertyValue> aProps = getProperty< uno::Sequence<beans::PropertyValue> >(xDraws->getByIndex(0), "CustomShapeGeometry");
uno::Sequence<beans::PropertyValue> aPathProps;
for (int i = 0; i < aProps.getLength(); ++i)
{
const beans::PropertyValue& rProp = aProps[i];
if (rProp.Name == "Path")
rProp.Value >>= aProps;
rProp.Value >>= aPathProps;
}
uno::Sequence<drawing::EnhancedCustomShapeParameterPair> aPairs;
for (int i = 0; i < aProps.getLength(); ++i)
for (int i = 0; i < aPathProps.getLength(); ++i)
{
const beans::PropertyValue& rProp = aProps[i];
const beans::PropertyValue& rProp = aPathProps[i];
if (rProp.Name == "Coordinates")
rProp.Value >>= aPairs;
}
......
......@@ -775,16 +775,17 @@ void Test::testInk()
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
uno::Sequence<beans::PropertyValue> aProps = getProperty< uno::Sequence<beans::PropertyValue> >(xDraws->getByIndex(0), "CustomShapeGeometry");
uno::Sequence<beans::PropertyValue> aPathProps;
for (int i = 0; i < aProps.getLength(); ++i)
{
const beans::PropertyValue& rProp = aProps[i];
if (rProp.Name == "Path")
rProp.Value >>= aProps;
rProp.Value >>= aPathProps;
}
uno::Sequence<drawing::EnhancedCustomShapeSegment> aSegments;
for (int i = 0; i < aProps.getLength(); ++i)
for (int i = 0; i < aPathProps.getLength(); ++i)
{
const beans::PropertyValue& rProp = aProps[i];
const beans::PropertyValue& rProp = aPathProps[i];
if (rProp.Name == "Segments")
rProp.Value >>= aSegments;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment