From b11d41aefbda7ae862e0b8a33c6b6d01bdea018a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Mon, 2 May 2011 00:36:35 +0200 Subject: [PATCH] XmlPullStreamDecoder: do not close streams after decode. They're passed to XmlPullStreamDecoder, so should be managed by calling object. --- .../java/brut/androlib/res/decoder/XmlPullStreamDecoder.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java b/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java index a616c7ff..abacdb45 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java +++ b/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java @@ -46,8 +46,6 @@ public class XmlPullStreamDecoder implements ResStreamDecoder { ser.event(par); } ser.flush(); - in.close(); - out.close(); } catch (XmlPullParserException ex) { throw new AndrolibException("Could not decode XML", ex); } catch (IOException ex) {