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
40df5fc0
Kaydet (Commit)
40df5fc0
authored
Tem 09, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mem leaks in writer font options tabpage
Change-Id: I7378f1a230fc55a97bc06d154939502f6ddcc792
üst
95e394a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
ctrltool.cxx
svtools/source/control/ctrltool.cxx
+1
-2
optpage.cxx
sw/source/ui/config/optpage.cxx
+10
-2
No files found.
svtools/source/control/ctrltool.cxx
Dosyayı görüntüle @
40df5fc0
...
@@ -382,8 +382,7 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, sal_Bool bAll
...
@@ -382,8 +382,7 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, sal_Bool bAll
FontList
::~
FontList
()
FontList
::~
FontList
()
{
{
// Gegebenenfalls SizeArray loeschen
// Gegebenenfalls SizeArray loeschen
if
(
mpSizeAry
)
delete
[]
mpSizeAry
;
delete
[]
mpSizeAry
;
// FontInfos loeschen
// FontInfos loeschen
ImplFontListFontInfo
*
pTemp
,
*
pInfo
;
ImplFontListFontInfo
*
pTemp
,
*
pInfo
;
...
...
sw/source/ui/config/optpage.cxx
Dosyayı görüntüle @
40df5fc0
...
@@ -578,8 +578,11 @@ SwStdFontTabPage::SwStdFontTabPage( Window* pParent,
...
@@ -578,8 +578,11 @@ SwStdFontTabPage::SwStdFontTabPage( Window* pParent,
SwStdFontTabPage
::~
SwStdFontTabPage
()
SwStdFontTabPage
::~
SwStdFontTabPage
()
{
{
if
(
bDeletePrinter
)
delete
pFontList
;
if
(
bDeletePrinter
)
{
delete
pPrt
;
delete
pPrt
;
}
}
}
SfxTabPage
*
SwStdFontTabPage
::
Create
(
Window
*
pParent
,
SfxTabPage
*
SwStdFontTabPage
::
Create
(
Window
*
pParent
,
...
@@ -760,6 +763,11 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet)
...
@@ -760,6 +763,11 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet)
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
if
(
bDeletePrinter
)
{
delete
pPrt
;
}
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
FN_PARAM_PRINTER
,
sal_False
,
&
pItem
))
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
FN_PARAM_PRINTER
,
sal_False
,
&
pItem
))
{
{
pPrt
=
(
SfxPrinter
*
)((
const
SwPtrItem
*
)
pItem
)
->
GetValue
();
pPrt
=
(
SfxPrinter
*
)((
const
SwPtrItem
*
)
pItem
)
->
GetValue
();
...
@@ -771,8 +779,8 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet)
...
@@ -771,8 +779,8 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet)
SID_PRINTER_CHANGESTODOC
,
SID_PRINTER_CHANGESTODOC
,
SID_PRINTER_CHANGESTODOC
,
SID_PRINTER_CHANGESTODOC
,
0
);
0
);
pPrt
=
new
SfxPrinter
(
pPrinterSet
);
pPrt
=
new
SfxPrinter
(
pPrinterSet
);
bDeletePrinter
=
sal_True
;
}
}
delete
pFontList
;
pFontList
=
new
FontList
(
pPrt
);
pFontList
=
new
FontList
(
pPrt
);
// #i94536# prevent duplication of font entries when 'reset' button is pressed
// #i94536# prevent duplication of font entries when 'reset' button is pressed
if
(
!
pStandardBox
->
GetEntryCount
()
)
if
(
!
pStandardBox
->
GetEntryCount
()
)
...
...
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