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
f1529383
Kaydet (Commit)
f1529383
authored
Mar 09, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#705649 Resource leak
Change-Id: I4899851af28b20a20c7b07301c22ddacdbb89b27
üst
e37886a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
msdffimp.cxx
filter/source/msfilter/msdffimp.cxx
+14
-5
No files found.
filter/source/msfilter/msdffimp.cxx
Dosyayı görüntüle @
f1529383
...
...
@@ -4887,7 +4887,9 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
{
SvxMSDffImportData
&
rImportData
=
*
(
SvxMSDffImportData
*
)
pData
;
SvxMSDffImportRec
*
pImpRec
=
new
SvxMSDffImportRec
;
bool
bDeleteImpRec
=
true
;
SvxMSDffImportRec
*
pTextImpRec
=
pImpRec
;
bool
bDeleteTextImpRec
=
false
;
// fill Import Record with data
pImpRec
->
nShapeId
=
rObjData
.
nShapeId
;
...
...
@@ -5083,6 +5085,7 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
pTextObj
=
new
SdrRectObj
(
OBJ_TEXT
,
rTextRect
);
pTextImpRec
=
new
SvxMSDffImportRec
(
*
pImpRec
);
bDeleteTextImpRec
=
true
;
// the vertical paragraph indents are part of the BoundRect,
// here we 'remove' them by calculating
...
...
@@ -5362,6 +5365,9 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
{
pImpRec
->
pObj
=
pOrgObj
;
rImportData
.
aRecords
.
insert
(
pImpRec
);
bDeleteImpRec
=
false
;
if
(
pImpRec
==
pTextImpRec
)
bDeleteTextImpRec
=
false
;
}
if
(
pTextObj
&&
(
pOrgObj
!=
pTextObj
)
)
...
...
@@ -5370,6 +5376,9 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
pImpRec
->
nShapeId
|=
0x8000000
;
pTextImpRec
->
pObj
=
pTextObj
;
rImportData
.
aRecords
.
insert
(
pTextImpRec
);
bDeleteTextImpRec
=
false
;
if
(
pTextImpRec
==
pImpRec
)
bDeleteImpRec
=
false
;
}
// entry in the z-order-list in order to complement the pointer to this object
...
...
@@ -5383,12 +5392,12 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
(
(
(
sal_uLong
)
pImpRec
->
aTextId
.
nTxBxS
)
<<
16
)
+
pImpRec
->
aTextId
.
nSequence
,
pObj
);
}
else
{
if
(
pTextImpRec
!=
pImpRec
)
delete
pTextImpRec
;
if
(
bDeleteImpRec
)
delete
pImpRec
;
}
if
(
bDeleteTextImpRec
)
delete
pTextImpRec
;
}
return
pObj
;
...
...
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