Say I have the following code:
SPList promo1List = site.WebApplication.Sites[0].RootWeb.Lists.TryGetList("promotions");
Will this lead to the SPSite object Sites[0] 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?