1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-13 06:31:02 +00:00

add Destructor func

This commit is contained in:
astaxie
2013-05-08 13:56:48 +08:00
parent d2e0960b8e
commit ce77c273cf
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,10 @@ func (c *Controller) Prepare() {
}
func (c *Controller) Finish() {
}
func (c *Controller) Destructor() {
if c.CruSession != nil {
c.CruSession.SessionRelease()
}