Skip to content

Commit

Permalink
fixed small leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 17, 2012
1 parent 986c346 commit cf86f20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Mojolicious.pm
Expand Up @@ -166,7 +166,12 @@ sub handler {

# Dispatcher
unless ($self->{dispatch}) {
$self->hook(around_dispatch => sub { shift; $c->app->dispatch(@_) });
$self->hook(
around_dispatch => sub {
my ($next, $c) = @_;
$c->app->dispatch($c);
}
);
$self->{dispatch}++;
}

Expand Down

0 comments on commit cf86f20

Please sign in to comment.