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
4de09a9e
Kaydet (Commit)
4de09a9e
authored
Ara 10, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#738980 Use after free
Change-Id: I30657eb609a9d02217238dd37a3f23e05168569c
üst
a73ece41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
ssfrm.cxx
sw/source/core/layout/ssfrm.cxx
+17
-9
No files found.
sw/source/core/layout/ssfrm.cxx
Dosyayı görüntüle @
4de09a9e
...
...
@@ -457,7 +457,10 @@ void SwLayoutFrm::Destroy()
// #i28701#
SwAnchoredObject
*
pAnchoredObj
=
(
*
pFrm
->
GetDrawObjs
())[
0
];
if
(
pAnchoredObj
->
ISA
(
SwFlyFrm
)
)
{
delete
pAnchoredObj
;
assert
(
!
pFrm
->
GetDrawObjs
()
||
nCnt
>
pFrm
->
GetDrawObjs
()
->
size
());
}
else
{
SdrObject
*
pSdrObj
=
pAnchoredObj
->
DrawObj
();
...
...
@@ -469,11 +472,12 @@ void SwLayoutFrm::Destroy()
{
pContact
->
DisconnectObjFromLayout
(
pSdrObj
);
}
}
if
(
pFrm
->
GetDrawObjs
()
&&
nCnt
==
pFrm
->
GetDrawObjs
()
->
size
()
)
{
pFrm
->
GetDrawObjs
()
->
Remove
(
*
pAnchoredObj
);
if
(
pFrm
->
GetDrawObjs
()
&&
nCnt
==
pFrm
->
GetDrawObjs
()
->
size
()
)
{
pFrm
->
GetDrawObjs
()
->
Remove
(
*
pAnchoredObj
);
}
}
}
pFrm
->
Remove
();
...
...
@@ -488,7 +492,10 @@ void SwLayoutFrm::Destroy()
// #i28701#
SwAnchoredObject
*
pAnchoredObj
=
(
*
GetDrawObjs
())[
0
];
if
(
pAnchoredObj
->
ISA
(
SwFlyFrm
)
)
{
delete
pAnchoredObj
;
assert
(
!
GetDrawObjs
()
||
nCnt
>
GetDrawObjs
()
->
size
());
}
else
{
SdrObject
*
pSdrObj
=
pAnchoredObj
->
DrawObj
();
...
...
@@ -500,10 +507,11 @@ void SwLayoutFrm::Destroy()
{
pContact
->
DisconnectObjFromLayout
(
pSdrObj
);
}
}
if
(
GetDrawObjs
()
&&
nCnt
==
GetDrawObjs
()
->
size
()
)
{
GetDrawObjs
()
->
Remove
(
*
pAnchoredObj
);
if
(
GetDrawObjs
()
&&
nCnt
==
GetDrawObjs
()
->
size
()
)
{
GetDrawObjs
()
->
Remove
(
*
pAnchoredObj
);
}
}
}
}
...
...
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