[Device] Add an extra mimetype parameter to GetIcon()

* Add an extra parameter to GetIcon() to match the same function prototype as for dleyna-server
* Fix a memory leak