Fixes media listeners memory leak.