Reset to release memory.
authorWolfgang Becker <uafr@gmx.de>
Wed, 31 May 2006 17:28:54 +0000 (17:28 +0000)
committerWolfgang Becker <uafr@gmx.de>
Wed, 31 May 2006 17:28:54 +0000 (17:28 +0000)
SVN-Revision: 3615

src/badguy/dart.cpp
src/badguy/flame.cpp

index a4cc63e..0fa86c6 100644 (file)
@@ -89,7 +89,7 @@ Dart::activate()
 void
 Dart::deactivate()
 {  
-  sound_source.release();
+  sound_source.reset();
   remove_me();
 }
 
index 7fe05e9..9acd1c6 100644 (file)
@@ -75,8 +75,7 @@ Flame::activate()
 void
 Flame::deactivate()
 {
-  sound_source->stop();
-  sound_source.release();
+  sound_source.reset();
 }
 
 void