layout: dispose used context

pull/341/head
Demian 4 years ago
parent 708093dfbc
commit 09f2572e08

@ -22,6 +22,13 @@ func (lt *Layout) Middleware(defaultLocale string, localeFunc ...LocaleFunc) tel
}
lt.SetLocale(c, locale)
defer func() {
lt.mu.Lock()
delete(lt.ctxs, c)
lt.mu.Unlock()
}()
return next(c)
}
}

Loading…
Cancel
Save