How to dispose textures created by post-processing passes?

I’m using react-three-fiber and when a certain mesh gets added to the scene I instantiate an effectComposer and add an outlinePass + some shaderPasses. A few seconds later I remove the OutlinePostProcessing component (aka the effectComposer and all the passes). However, there are 2 textures that stick around in webGL memory. I’ve confirmed it’s the passes causing the increase in textures in memory.

I can’t figure out how to dispose of the textures being created by the passes. Anybody have a clue of how I could dispose properly?