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
0b9ceae7
Kaydet (Commit)
0b9ceae7
authored
Mar 04, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326474 Resource leak on an exceptional path
Change-Id: I13047e59fc10ab169072f84c75ba88c569d16bd6
üst
1e83fab9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
XMergeBridge.java
xmerge/source/bridge/java/XMergeBridge.java
+14
-5
No files found.
xmerge/source/bridge/java/XMergeBridge.java
Dosyayı görüntüle @
0b9ceae7
...
...
@@ -364,6 +364,11 @@ public class XMergeBridge {
}
private
static
void
close
(
FileOutputStream
c
)
throws
IOException
{
if
(
c
==
null
)
return
;
c
.
close
();
}
private
void
convert
(
com
.
sun
.
star
.
io
.
XInputStream
xml
,
com
.
sun
.
star
.
io
.
XOutputStream
device
,
boolean
convertFromOffice
,
String
pluginUrl
,
String
FileName
,
String
offMime
,
String
sdMime
)
throws
com
.
sun
.
star
.
uno
.
RuntimeException
,
IOException
{
...
...
@@ -436,11 +441,15 @@ public class XMergeBridge {
newFile
=
new
File
(
newFileName
.
concat
(
String
.
valueOf
(
i
)));
}
FileOutputStream
fos
=
new
FileOutputStream
(
newFile
);
docOut
=
(
Document
)
docEnum
.
next
();
docOut
.
write
(
fos
);
fos
.
flush
();
fos
.
close
();
FileOutputStream
fos
=
null
;
try
{
fos
=
new
FileOutputStream
(
newFile
);
docOut
=
(
Document
)
docEnum
.
next
();
docOut
.
write
(
fos
);
fos
.
flush
();
}
finally
{
close
(
fos
);
}
i
++;
}
...
...
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