Using QMediaPlayer to play a wav on Mac OS X Mountain Lion, makes the program exit unsucessfully

Hello, I'm trying to build an application (QT 5.0.2) that somewhere in it, it plays a sound, pretty much like a sound effect. For that I'm using QMediaPlayer (since I don't know why, but QSoundEffect didn't played the WAV file), and although it plays the sound, when I quit the program it actually crashes.
Now, this happens only on Mac OS X, if I take it to a Windows 7 machine, compile it, it goes smoothly.
Here's how I'm actually using it:

This is the constructor:
@
_player = new QMediaPlayer(this);
_player->setMedia(QUrl::fromLocalFile(hornSound));@