]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/fg_fx.cxx
Merge branch 'next' into durk-atc
[flightgear.git] / src / Sound / fg_fx.cxx
index ab0ace0a94d059f693996f9e43599904babd21aa..2953bfe678c6e8ae18c45089425f743a265bc798 100644 (file)
@@ -34,6 +34,7 @@
 #include <Main/fg_props.hxx>
 
 #include <simgear/props/props.hxx>
+#include <simgear/props/props_io.hxx>
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/sound/soundmgr_openal.hxx>
 #include <simgear/sound/xmlsound.hxx>
@@ -109,6 +110,9 @@ FGFX::init()
 void
 FGFX::reinit()
 {
+    for ( unsigned int i = 0; i < _sound.size(); i++ ) {
+        delete _sound[i];
+    }
     _sound.clear();
     init();
 };