Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e60b212c
Kaydet (Commit)
e60b212c
authored
Ock 13, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid double deletion during data cache object destruction.
üst
aa7e1056
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
dptablecache.hxx
sc/inc/dptablecache.hxx
+2
-0
dptablecache.cxx
sc/source/core/data/dptablecache.cxx
+9
-5
No files found.
sc/inc/dptablecache.hxx
Dosyayı görüntüle @
e60b212c
...
...
@@ -93,6 +93,8 @@ private:
mutable
ScDPItemDataPool
maAdditionalData
;
bool
mbDisposing
;
public
:
void
AddReference
(
ScDPObject
*
pObj
)
const
;
void
RemoveReference
(
ScDPObject
*
pObj
)
const
;
...
...
sc/source/core/data/dptablecache.cxx
Dosyayı görüntüle @
e60b212c
...
...
@@ -429,7 +429,8 @@ bool ScDPCache::operator== ( const ScDPCache& r ) const
ScDPCache
::
ScDPCache
(
ScDocument
*
pDoc
)
:
mpDoc
(
pDoc
),
mnColumnCount
(
0
)
mnColumnCount
(
0
),
mbDisposing
(
false
)
{
}
...
...
@@ -448,10 +449,9 @@ struct ClearObjectSource : std::unary_function<ScDPObject*, void>
ScDPCache
::~
ScDPCache
()
{
// Make sure no live ScDPObject instances hold reference to this cache any
// more. We need to use a copied set because the referencing objects will
// modify the original when clearing their source.
ObjectSetType
aRefs
(
maRefObjects
);
std
::
for_each
(
aRefs
.
begin
(),
aRefs
.
end
(),
ClearObjectSource
());
// more.
mbDisposing
=
true
;
std
::
for_each
(
maRefObjects
.
begin
(),
maRefObjects
.
end
(),
ClearObjectSource
());
}
bool
ScDPCache
::
IsValid
()
const
...
...
@@ -1010,6 +1010,10 @@ void ScDPCache::AddReference(ScDPObject* pObj) const
void
ScDPCache
::
RemoveReference
(
ScDPObject
*
pObj
)
const
{
if
(
mbDisposing
)
// Object being deleted.
return
;
maRefObjects
.
erase
(
pObj
);
if
(
maRefObjects
.
empty
())
mpDoc
->
GetDPCollection
()
->
RemoveCache
(
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment