media: resource management for ringtone.
Merge pull request #2 from tihonko/dev

media: resource management for ringtone.