From 28dd2cd568c01a460f304e5f7de87edd88c66064 Mon Sep 17 00:00:00 2001 From: Xavier Mitault Date: Sun, 5 Nov 2023 22:18:46 +0000 Subject: [PATCH] BLUGA-GRAPHICS: Remove bug PATCH --- .../B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp | 14 -------------- .../B-luga-graphics/src/RaylibImpl/Audio/Audio.hpp | 4 ---- 2 files changed, 18 deletions(-) diff --git a/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp b/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp index 8220798..b35cb47 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp @@ -173,18 +173,4 @@ namespace Raylib { { return _path; } - - SoundImpl::~SoundImpl() - { - if (isReady()) { - unload(); - } - } - - MusicImpl::~MusicImpl() - { - if (isReady()) { - unload(); - } - } } // namespace Raylib diff --git a/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.hpp b/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.hpp index cc906b6..dc3daac 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.hpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.hpp @@ -20,8 +20,6 @@ namespace Raylib { public: SoundImpl(const std::string& fileName, float volume); - ~SoundImpl(); - bool isReady() const override; void unload() override; @@ -58,8 +56,6 @@ namespace Raylib { public: MusicImpl(const std::string& fileName, float volume); - ~MusicImpl(); - void unload() override; bool isReady() const override;