Use std::unique_ptr<> throughout the audio system
[supertux.git] / src / object / ambient_sound.hpp
index 1f059ef..e438ea9 100644 (file)
@@ -91,7 +91,7 @@ private:
   Vector dimension;
 
   std::string sample;
-  SoundSource* sound_source;
+  std::unique_ptr<SoundSource> sound_source;
   int latency;
 
   float distance_factor;  /// distance scaling