The stopSharing function in useCaptureProvider does not clear the videoRef.srcObject or pause the video element, causing GPU pipeline memory leaks.
File: src/hooks/useCaptureProvider.ts
Fix: Add video.pause() and video.srcObject = null in stopSharing