Kaydet (Commit) 713f03d8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

CID#1078788: fix memory leak

Change-Id: I4ac535c4f5dd3b414771d54ba1718ffe5254b525
üst ecfe2f64
......@@ -386,7 +386,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
//aProperty.Name = sPropertyPath + OUString("/") + sPropertyName;
Prop_Impl* aProperty = new Prop_Impl( sPropertyPath, sPropertyName, makeAny( sPropertyValue ) );
Prop_Impl* pProperty = new Prop_Impl( sPropertyPath, sPropertyName, makeAny( sPropertyValue ) );
bool bOpenDialog;
OUString sDialogValue;
......@@ -406,7 +406,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
bValue = true;
}
aProperty->Value = uno::makeAny( bValue );
pProperty->Value = uno::makeAny( bValue );
bOpenDialog = false;
}else// if ( sPropertyType == OUString( "string" ) )
{
......@@ -425,12 +425,16 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
{
sNewValue = pValueDialog->getValue();
//TODO: parse the value according to the type?
aProperty->Value = uno::makeAny( sNewValue );
AddToModifiedVector( aProperty );
pProperty->Value = uno::makeAny( sNewValue );
AddToModifiedVector( pProperty );
sDialogValue = sNewValue;
}
else
delete pProperty;
}
else
delete pProperty;
pPrefBox->SetEntryText( sDialogValue, pEntry, 3 );
//TODO:update listbox value.
......
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