[macruby-changes] [2315] MacRuby/trunk/lib/stringio.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 13 16:47:19 PDT 2009
Revision: 2315
http://trac.macosforge.org/projects/ruby/changeset/2315
Author: mattaimonetti at gmail.com
Date: 2009-08-13 16:47:19 -0700 (Thu, 13 Aug 2009)
Log Message:
-----------
removed the finalize protected method since it was conflicting with the GC
Modified Paths:
--------------
MacRuby/trunk/lib/stringio.rb
Modified: MacRuby/trunk/lib/stringio.rb
===================================================================
--- MacRuby/trunk/lib/stringio.rb 2009-08-13 23:15:27 UTC (rev 2314)
+++ MacRuby/trunk/lib/stringio.rb 2009-08-13 23:47:19 UTC (rev 2315)
@@ -33,7 +33,9 @@
begin
yield obj
ensure
- obj.finalize
+ obj.close
+ obj.instance_variable_set(:@string, nil)
+ obj
end
else
obj
@@ -620,12 +622,6 @@
def to_strio
self
end
-
- def finalize
- self.close
- @string = nil
- self
- end
def define_mode(mode=nil)
if mode == nil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090813/9a3bc92e/attachment.html>
More information about the macruby-changes
mailing list