diff --git a/include/AudioStream.hpp b/include/AudioStream.hpp index dc44714b..c489cfb9 100644 --- a/include/AudioStream.hpp +++ b/include/AudioStream.hpp @@ -90,7 +90,9 @@ class AudioStream : public ::AudioStream { * Unload audio stream and free memory */ void Unload() { - ::UnloadAudioStream(*this); + if (IsReady()) { + ::UnloadAudioStream(*this); + } } /**