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
1e83fab9
Kaydet (Commit)
1e83fab9
authored
Mar 04, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326516 Resource leak on an exceptional path
Change-Id: I91cc5614fb0db76eabd46cbe7e39ae33227728b7
üst
b08e200c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Driver.java
...source/xmerge/java/org/openoffice/xmerge/test/Driver.java
+9
-5
No files found.
xmerge/source/xmerge/java/org/openoffice/xmerge/test/Driver.java
Dosyayı görüntüle @
1e83fab9
...
...
@@ -184,12 +184,16 @@ public final class Driver {
Document
convertedFile
=
(
Document
)
mergeDocEnum
.
next
();
merger
.
merge
(
convertedFile
);
mergeIS
.
close
();
mergeIS
.
close
();
FileOutputStream
fos
=
new
FileOutputStream
(
mergeFile
);
mergeDoc
.
write
(
fos
);
fos
.
flush
();
fos
.
close
();
FileOutputStream
fos
=
null
;
try
{
fos
=
new
FileOutputStream
(
mergeFile
);
mergeDoc
.
write
(
fos
);
fos
.
flush
();
}
finally
{
close
(
fos
);
}
}
catch
(
Exception
mergeExcept
)
{
System
.
out
.
println
(
"\nThere was an error in the merge"
);
mergeExcept
.
printStackTrace
();
...
...
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