Skip to content

Commit

Permalink
Merge pull request #846 from sholden/master
Browse files Browse the repository at this point in the history
Fix template cache memory leak
  • Loading branch information
rkh committed Feb 21, 2014
2 parents f335ed3 + f50af1d commit c2ba3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -809,7 +809,7 @@ def render(engine, data, options = {}, locals = {}, &block)

# render layout
if layout
options.merge!(:views => views, :layout => false, :eat_errors => eat_errors, :scope => scope).
options = options.merge(:views => views, :layout => false, :eat_errors => eat_errors, :scope => scope).
merge!(layout_options)
catch(:layout_missing) { return render(layout_engine, layout, options, locals) { output } }
end
Expand Down

0 comments on commit c2ba3c2

Please sign in to comment.