apache/cordova-plugin-media — pull request #9 by hansmi (2014-01-14 18:15:54+00:00)
Title: [CB-4755] Fix crash in Media.setVolume on iOS

Media.setVolume caused the application to crash after Media.release was called. Code causing crash:

```
var m = new Media("test.caf");
m.release();
m.setVolume(1); // crash in this call
```

The reason was that retrieving the CDVAudioFile instance from the sound cache would return nil after Media.release. This patch fixes the issue by explicitely checking for nil. It also does away with an unnecessary cache initialization, which isn't needed as -[Media setVolume:] doesn't write to the cache.