aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
diff options
context:
space:
mode:
authorDenis Lila <[email protected]>2011-03-08 14:48:34 -0500
committerDenis Lila <[email protected]>2011-03-08 14:48:34 -0500
commit7402c4e21bd5da0b1e66da01b96a3fd9cd24e10e (patch)
tree17c6cf70ea92c253f85eac144a82798a0659995e /netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
parent261b0560100e15e376cb6bcf64eaabb5a79b24c5 (diff)
Close streams after we're finished using them.
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java')
-rw-r--r--netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java b/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
index ed71d0d..db4e0cb 100644
--- a/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
+++ b/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
@@ -369,7 +369,11 @@ public class CertificatePane extends JPanel {
}
OutputStream os = new FileOutputStream(keyStoreFile);
- ks.store(os, KeyStores.getPassword());
+ try {
+ ks.store(os, KeyStores.getPassword());
+ } finally {
+ os.close();
+ }
repopulateTables();
} catch (Exception ex) {
// TODO: handle exception