From: Wolfgang Becker Date: Wed, 31 May 2006 17:28:54 +0000 (+0000) Subject: Reset to release memory. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8eea3ab830de99d82e659474e0f2a60aa18c3bb1;p=supertux.git Reset to release memory. SVN-Revision: 3615 --- diff --git a/src/badguy/dart.cpp b/src/badguy/dart.cpp index a4cc63e2d..0fa86c641 100644 --- a/src/badguy/dart.cpp +++ b/src/badguy/dart.cpp @@ -89,7 +89,7 @@ Dart::activate() void Dart::deactivate() { - sound_source.release(); + sound_source.reset(); remove_me(); } diff --git a/src/badguy/flame.cpp b/src/badguy/flame.cpp index 7fe05e9a2..9acd1c64a 100644 --- a/src/badguy/flame.cpp +++ b/src/badguy/flame.cpp @@ -75,8 +75,7 @@ Flame::activate() void Flame::deactivate() { - sound_source->stop(); - sound_source.release(); + sound_source.reset(); } void