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

coverity#1326499 Resource leak

Change-Id: I561e8f7ff472d7d2578e30145024405e74088ffc
üst bc16de62
......@@ -1339,6 +1339,10 @@ namespace svxform
if (!xNewForm.is())
return;
Reference< XPropertySet > xPropertySet(xNewForm, UNO_QUERY);
if (!xPropertySet.is())
return;
FmFormData* pNewFormData = new FmFormData( xNewForm, m_aNavigatorImages, pParentFormData );
......@@ -1346,9 +1350,6 @@ namespace svxform
OUString aName = GenerateName(pNewFormData);
pNewFormData->SetText(aName);
Reference< XPropertySet > xPropertySet(xNewForm, UNO_QUERY);
if (!xPropertySet.is())
return;
try
{
xPropertySet->setPropertyValue( FM_PROP_NAME, makeAny(aName) );
......
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