Compatibility - Picture-in-Picture - Attempt solution to #661 and #885.
Fix potential memory leak with IDetectableResource.