rtpendpoint_video: Fix memory leak with main_loop

Change-Id: I14e69160bc0f0d245eccd901dc29dcf36466aebc