Fix a couple of memory leaks where data providers weren’t being released.