Skip to content

Commit 471cf07

Browse files
explicit call to cache.Dispose on Disposing event handler
1 parent df17863 commit 471cf07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SqlClient/SingleRootTypeProvider.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ type SingleRootTypeProvider(config: TypeProviderConfig, providerName, parameters
6767
this.AddNamespace( nameSpace, [ providerType ])
6868

6969
do
70-
this.Disposing.Add <| fun _ -> clearCache()
70+
this.Disposing.Add <| fun _ ->
71+
clearCache()
72+
cache.Dispose()
7173

7274
abstract CreateRootType: assemblyName: Assembly * nameSpace: string * typeName: string * args: obj[] -> Lazy<ProvidedTypeDefinition> * obj[] // ChangeMonitor[] underneath but there is a problem https://github.com/fsprojects/FSharp.Data.SqlClient/issues/234#issuecomment-240694390

0 commit comments

Comments
 (0)