3D Audio GSoC:
authorJoerg Mueller <nexyon@gmail.com>
Tue, 21 Jun 2011 20:14:07 +0000 (20:14 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Tue, 21 Jun 2011 20:14:07 +0000 (20:14 +0000)
Memory bug fix.

source/blender/blenkernel/intern/sound.c

index f42492ef7137023eca1ada32fab4db3b26aa27e1..9e9df24be320766d21ff3d77e66285472c9df621 100644 (file)
@@ -315,6 +315,11 @@ void sound_free(struct bSound* sound)
                sound->handle = NULL;
                sound->playback_handle = NULL;
        }
+
+       if(sound->cache)
+       {
+               AUD_unload(sound->cache);
+       }
 }
 
 static float sound_get_volume(Scene* scene, Sequence* sequence, float time)