Fix memory leaks with rtsp and a bug
Merge pull request #574 from manupap1/rtsp_fix

Fix memory leaks with rtsp and a bug