Skip to content

Commit

Permalink
fixed memory leak in development not found page
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 4, 2013
1 parent 747f08d commit 09b77be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,7 +1,8 @@

3.85 2013-02-04
3.85 2013-02-05
- Improved documentation.
- Improved tests.
- Fixed memory leak in development not found page.

3.84 2013-01-30
- Deprecated after_static_dispatch hook in favor of before_routes.
Expand Down
9 changes: 4 additions & 5 deletions lib/Mojolicious/templates/not_found.development.html.ep
Expand Up @@ -84,9 +84,8 @@
<code><%= $self->req->url->path %></code>, maybe you need to add a
new one?
</p>
% my $walk;
% $walk = begin
% my ($node, $depth) = @_;
% my $walk = begin
% my ($walk, $node, $depth) = @_;
<tr>
<td>
% my $pattern = $node->pattern->pattern || '/';
Expand All @@ -102,7 +101,7 @@
</td>
</tr>
% $depth++;
%= $walk->($_, $depth) for @{$node->children};
%= $walk->($walk, $_, $depth) for @{$node->children};
% $depth--;
% end
<table>
Expand All @@ -111,7 +110,7 @@
<th>Methods</th>
<th>Name</th>
</tr>
%= $walk->($_, 0) for @{app->routes->children};
%= $walk->($walk, $_, 0) for @{app->routes->children};
</table>
</div>
</div>
Expand Down

0 comments on commit 09b77be

Please sign in to comment.