Ensure old buffers get properly cleared to avoid leaking memory

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Duff OMelia
2008-09-18 08:51:19 -05:00
committed by Joshua Peek
parent 790ebf8eab
commit e7cb8c844a

View File

@@ -116,7 +116,7 @@ module ActiveSupport
end
def clear_buffer
@buffer[Thread.current] = []
@buffer.delete(Thread.current)
end
end
end