]> git.mxchange.org Git - simgear.git/commit
sound: fix "source" resource leak
authorThorstenB <brehmt@gmail.com>
Sun, 4 Dec 2011 19:16:36 +0000 (20:16 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 4 Dec 2011 19:16:36 +0000 (20:16 +0100)
commite17b3a753e57e4141eb4d30f7122640cb021b98c
treeb23a2ff340b5b97739b0c6277a1e0039b4896985
parent865b0a3e568040f61da01f8a7be0eeb7de61b360
sound: fix "source" resource leak
Sound resources were eaten up when a sample could not be loaded.
Restores sound for aircraft attempting to use stereo files for sound effects.
However, when loading fails, sound code still tries to load the same file
again and again (always resulting in the same "stereo files not supported"
error), which slows down simulation.
simgear/sound/sample_group.cxx