Skip to content

Commit

Permalink
Addigng classFactory for resource release
Browse files Browse the repository at this point in the history
  • Loading branch information
AllDwarf committed Oct 3, 2024
1 parent 10a5e6b commit 5923dc8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private static void CoCreateFromMsdia(Guid clsidOfServer, Guid riid, out IntPtr
var classFactory = (IClassFactory)Marshal.GetObjectForIUnknown(pClassFactory);
classFactory.CreateInstance(IntPtr.Zero, ref riid, out pvObject);
resourceReleaser.Release(pClassFactory);
resourceReleaser.Release(classFactory);
}

private const string IDiaDataSourceRiid = "79F1BB5F-B66E-48E5-B6A9-1545C323CA3D";
Expand Down

0 comments on commit 5923dc8

Please sign in to comment.