diff --git a/orm.go b/orm.go index cbb47a3..cfd96b1 100644 --- a/orm.go +++ b/orm.go @@ -131,6 +131,9 @@ func (orm *ORM) Clear() error { return ErrClosed } orm.objects.Clear() + if orm.Snap != nil { + _ = orm.Snap.Close() + } orm.Snap = orm.Host.Database().NewSnapshot() return nil }