I think replymessage could be nil here so you need to do:
```
if (replymessage != nil)
  MCValueRelease(replymessage);
```