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
7a3716bd
Kaydet (Commit)
7a3716bd
authored
Agu 17, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#72695: avoid double-free race condition for SwXTextSection
Change-Id: I6a4cd076deef63f172c42dcc22cc44c47a4aa293
üst
7fa2a363
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
unosect.cxx
sw/source/core/unocore/unosect.cxx
+13
-3
No files found.
sw/source/core/unocore/unosect.cxx
Dosyayı görüntüle @
7a3716bd
...
...
@@ -108,6 +108,7 @@ private:
public
:
SwXTextSection
&
m_rThis
;
uno
::
WeakReference
<
uno
::
XInterface
>
m_wThis
;
const
SfxItemPropertySet
&
m_rPropSet
;
::
cppu
::
OInterfaceContainerHelper
m_EventListeners
;
const
bool
m_bIndexHeader
;
...
...
@@ -163,11 +164,18 @@ protected:
void
SwXTextSection
::
Impl
::
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
{
ClientModify
(
this
,
pOld
,
pNew
);
if
(
!
GetRegisteredIn
())
if
(
GetRegisteredIn
())
{
lang
::
EventObject
const
ev
(
static_cast
<
::
cppu
::
OWeakObject
&>
(
m_rThis
));
m_EventListeners
.
disposeAndClear
(
ev
);
return
;
// core object still alive
}
uno
::
Reference
<
uno
::
XInterface
>
const
xThis
(
m_wThis
);
if
(
!
xThis
.
is
())
{
// fdo#72695: if UNO object is already dead, don't revive it with event
return
;
}
lang
::
EventObject
const
ev
(
xThis
);
m_EventListeners
.
disposeAndClear
(
ev
);
}
SwSectionFmt
*
SwXTextSection
::
GetFmt
()
const
...
...
@@ -194,6 +202,8 @@ SwXTextSection::CreateXTextSection(
{
pFmt
->
SetXTextSection
(
xSection
);
}
// need a permanent Reference to initialize m_wThis
pNew
->
m_pImpl
->
m_wThis
=
xSection
;
}
return
xSection
;
}
...
...
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