MediaSourceImpl: fix memory leak

Change-Id: I12c2cc9cc456c204da0b987a48f2e4c7b87af8e1