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
77df4f89
Kaydet (Commit)
77df4f89
authored
Eki 06, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CID#736510 mem leaks in early error return cases
Change-Id: I85dff67d5d92e1024e9b449f1298678e7f5ff9e6
üst
362304cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
docglbl.cxx
sw/source/core/doc/docglbl.cxx
+5
-6
No files found.
sw/source/core/doc/docglbl.cxx
Dosyayı görüntüle @
77df4f89
...
...
@@ -43,6 +43,7 @@
#include <doctxm.hxx>
#include <poolfmt.hxx>
#include <switerator.hxx>
#include <boost/scoped_ptr.hpp>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
...
...
@@ -157,6 +158,7 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const String& rPath, bool bOutline, c
sal_uInt16
nOutl
=
0
;
SwOutlineNodes
*
pOutlNds
=
(
SwOutlineNodes
*
)
&
GetNodes
().
GetOutLineNds
();
boost
::
scoped_ptr
<
SwOutlineNodes
>
xTmpOutlNds
;
SwNodePtr
pStartNd
;
if
(
!
bOutline
)
{
...
...
@@ -165,17 +167,15 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const String& rPath, bool bOutline, c
// If it isn't a OutlineNumbering, then use an own array and collect the Nodes.
if
(
pSplitColl
->
GetAttrOutlineLevel
()
==
0
)
{
pOutlNds
=
new
SwOutlineNodes
;
xTmpOutlNds
.
reset
(
new
SwOutlineNodes
);
pOutlNds
=
xTmpOutlNds
.
get
();
SwIterator
<
SwTxtNode
,
SwFmtColl
>
aIter
(
*
pSplitColl
);
for
(
SwTxtNode
*
pTNd
=
aIter
.
First
();
pTNd
;
pTNd
=
aIter
.
Next
()
)
if
(
pTNd
->
GetNodes
().
IsDocNodes
()
)
pOutlNds
->
insert
(
pTNd
);
if
(
pOutlNds
->
empty
()
)
{
delete
pOutlNds
;
return
false
;
}
}
}
else
...
...
@@ -482,8 +482,7 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const String& rPath, bool bOutline, c
}
}
while
(
pStartNd
);
if
(
pOutlNds
!=
&
GetNodes
().
GetOutLineNds
()
)
delete
pOutlNds
;
xTmpOutlNds
.
reset
();
switch
(
eDocType
)
{
...
...
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