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