Fixed memory leaks in EDL2.
Merge branch 'master' into webcam-support