public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Ensure old buffers get properly cleared to avoid leaking memory

Signed-off-by: Joshua Peek <josh@joshpeek.com>
duff (author)
Thu Sep 18 06:51:19 -0700 2008
josh (committer)
Thu Sep 18 06:51:19 -0700 2008
commit  e7cb8c844ad9a5b3260c7e369b288d0792576765
tree    008a44b030046a99c916f44d30ab9146181f1d17
parent  790ebf8eab39da1b4d62146fe10f4a77f5daca8c
...
116
117
118
119
 
120
121
122
...
116
117
118
 
119
120
121
122
0
@@ -116,7 +116,7 @@ module ActiveSupport
0
       end
0
 
0
       def clear_buffer
0
-        @buffer[Thread.current] = []
0
+        @buffer.delete(Thread.current)
0
       end
0
   end
0
 end

Comments