Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed memory leak in Mojolicious::Routes
  • Loading branch information
kraih committed Sep 1, 2013
1 parent a6c016c commit e3245e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

4.30 2013-09-01
- Fixed memory leak in Mojolicious::Routes.

4.29 2013-08-31
- Fixed automatic rendering to work after non-blocking operations have been
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojolicious/Routes.pm
Expand Up @@ -153,7 +153,9 @@ sub _class {
}

# Success
return $class->new($c);
my $new = $class->new($c);
weaken $new->{$_} for qw(app tx);
return $new;
}

# Nothing found
Expand Down

0 comments on commit e3245e4

Please sign in to comment.