OSDN Git Service
(root)
/
mikumikustudio
/
libgdx-mikumikustudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8569eb
)
Close writer.
author
NathanSweet
<nathan.sweet@gmail.com>
Fri, 5 Apr 2013 17:31:36 +0000
(19:31 +0200)
committer
NathanSweet
<nathan.sweet@gmail.com>
Fri, 5 Apr 2013 17:31:36 +0000
(19:31 +0200)
gdx/src/com/badlogic/gdx/utils/Json.java
patch
|
blob
|
history
diff --git
a/gdx/src/com/badlogic/gdx/utils/Json.java
b/gdx/src/com/badlogic/gdx/utils/Json.java
index
d98808e
..
33ee50b
100644
(file)
--- a/
gdx/src/com/badlogic/gdx/utils/Json.java
+++ b/
gdx/src/com/badlogic/gdx/utils/Json.java
@@
-206,6
+206,10
@@
public class Json {
try {
\r
writeValue(object, knownType, elementType);
\r
} finally {
\r
+ try {
\r
+ this.writer.close();
\r
+ } catch (IOException ignored) {
\r
+ }
\r
this.writer = null;
\r
}
\r
}
\r