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