incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1354849 - /incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx
Date Thu, 28 Jun 2012 08:07:13 GMT
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);



Mime
View raw message