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
37198ff2
Kaydet (Commit)
37198ff2
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 SwXTextTable
Change-Id: Ibd27e8d61ccbe7d1cdeb72d310acea54198ecd77
üst
e1b299de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+9
-1
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
37198ff2
...
...
@@ -1958,6 +1958,7 @@ private:
::
osl
::
Mutex
m_Mutex
;
// just for OInterfaceContainerHelper
public
:
uno
::
WeakReference
<
uno
::
XInterface
>
m_wThis
;
::
cppu
::
OMultiTypeInterfaceContainerHelper
m_Listeners
;
Impl
()
:
m_Listeners
(
m_Mutex
)
{
}
...
...
@@ -2237,6 +2238,8 @@ SwXTextTable::CreateXTextTable(SwFrmFmt *const pFrmFmt)
{
pFrmFmt
->
SetXObject
(
xTable
);
}
// need a permanent Reference to initialize m_wThis
pNew
->
m_pImpl
->
m_wThis
=
xTable
;
}
return
xTable
;
}
...
...
@@ -3702,7 +3705,12 @@ void SwXTextTable::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew)
ClientModify
(
this
,
pOld
,
pNew
);
if
(
!
GetRegisteredIn
())
{
lang
::
EventObject
const
ev
(
static_cast
<
::
cppu
::
OWeakObject
&>
(
*
this
));
uno
::
Reference
<
uno
::
XInterface
>
const
xThis
(
m_pImpl
->
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_pImpl
->
m_Listeners
.
disposeAndClear
(
ev
);
}
else
...
...
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