CV_CAP_DSHOW, CV_CAP_MSMF What is different?

CV_CAP_DSHOW

CV_CAP_MSMF

directshow has memory leak. Is Microsoft Media Foundation Different? And is the video capture method the same?