Avoid double free in MediaCaptureDevicesDispatcher

Fix e7d3a58be0047c15ea1105e7686bfc1ec8de160c
[test] Test-case for crash dump