You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/03/17 12:28:54 UTC

DO NOT REPLY [Bug 46863] DeflaterOutputStream not closed, causes OutOfMemoryError

https://issues.apache.org/bugzilla/show_bug.cgi?id=46863





--- Comment #1 from Helder Magalhães <he...@gmail.com>  2009-03-17 04:28:51 PST ---
Created an attachment (id=23388)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23388)
Untested patch adapted from proposal

First of all, I'm not sure if we should fix this, as it's a Java bug -- should
this be marked as invalid instead?

Nevertheless, by making a short investigation and taking a look at the class
documentation [1], it seems that simply replacing finish() by close() would fix
this and also shouldn't hurt anything so here goes an untested patch.

If anyone has the opportunity to review/test this patch, please follow up with
results. Other proposals are (naturally) welcome. :-)

Hope this helps,
 Helder Magalhães

[1]
http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/DeflaterOutputStream.html

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org