Say I have the following code:
SPList promo1List = site.WebApplication.Sites.RootWeb.Lists.TryGetList("promotions");
Will this lead to the SPSite object
Sites not being disposed? I ran SPDisposeCheck against my code and it came up with a bunch of warnings about the above.
According to their documentation:
SPSiteCollection indexer returns a SPSite object which needs to be disposed.
Is this accurate or is this just a false positive?