You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2012/06/28 10:07:13 UTC
svn commit: r1354849 -
/incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx
Author: hdu
Date: Thu Jun 28 08:07:12 2012
New Revision: 1354849
URL: http://svn.apache.org/viewvc?rev=1354849&view=rev
Log:
#i120108# fix leaking pTabData[] in ScViewData::ReadUserDataSequence()
Patch-by: Chao Huang
Found-by: Chao Huang
Review and minor style fix by: Herbert Duerr
Modified:
incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx
Modified: incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx?rev=1354849&r1=1354848&r2=1354849&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx Thu Jun 28 08:07:12 2012
@@ -2816,6 +2816,7 @@ void ScViewData::ReadUserDataSequence(co
uno::Sequence<beans::PropertyValue> aTabSettings;
if (aAny >>= aTabSettings)
{
+ delete pTabData[nTab];
pTabData[nTab] = new ScViewDataTable;
bool bHasZoom = false;
pTabData[nTab]->ReadUserDataSequence(aTabSettings, *this, nTab, bHasZoom);