webrtcendpoint: Fix memory leak

Change-Id: I9bde3212659a17ea8d60200c444216d53dd1ceef