diff --git a/desktop_version/CONTRIBUTORS.txt b/desktop_version/CONTRIBUTORS.txt index 364ccd36..1079195e 100644 --- a/desktop_version/CONTRIBUTORS.txt +++ b/desktop_version/CONTRIBUTORS.txt @@ -2,3 +2,4 @@ Contributors ------------ * Christoph Böhmwalder (@chrboe) +* Elijah Stone diff --git a/desktop_version/src/SoundSystem.cpp b/desktop_version/src/SoundSystem.cpp index e88d0eda..ff7f4272 100644 --- a/desktop_version/src/SoundSystem.cpp +++ b/desktop_version/src/SoundSystem.cpp @@ -33,7 +33,10 @@ SoundTrack::SoundTrack(const char* fileName) FILESYSTEM_loadFileToMemory(fileName, &mem, &length); SDL_RWops *fileIn = SDL_RWFromMem(mem, length); sound = Mix_LoadWAV_RW(fileIn, 1); - if (length) FILESYSTEM_freeMemory(&mem); + if (length) + { + FILESYSTEM_freeMemory(&mem); + } if (sound == NULL) {