diff options
author | David Carlier <devnexen@gmail.com> | 2016-07-28 08:56:22 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2016-08-10 16:59:32 +0200 |
commit | 48b3bb980d4a026d32739acc1982f16e3c303c5b (patch) | |
tree | 1685d44bb69642771a9840171bcab93a68f6da49 /src/sound_openal.cpp | |
parent | 1be3894e6f283b0538a725bc438922c7d7ec294a (diff) | |
download | hax-minetest-server-48b3bb980d4a026d32739acc1982f16e3c303c5b.tar.gz hax-minetest-server-48b3bb980d4a026d32739acc1982f16e3c303c5b.zip |
couple of memory leaks fixes.
Diffstat (limited to 'src/sound_openal.cpp')
-rw-r--r-- | src/sound_openal.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound_openal.cpp b/src/sound_openal.cpp index e2b6d937a..1832a0c77 100644 --- a/src/sound_openal.cpp +++ b/src/sound_openal.cpp @@ -144,6 +144,7 @@ SoundBuffer *load_opened_ogg_file(OggVorbis_File *oggFile, ov_clear(oggFile); infostream << "Audio: Error decoding " << filename_for_logging << std::endl; + delete snd; return NULL; } |