Revert "update media"

This reverts commit 751217b65781f74b742f10103b50a3d8650b3e3e.
update memory leak