Skip to content

Commit 2220b89

Browse files
committed
Add virtual destructor for Sound
1 parent d5f9367 commit 2220b89

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/audio/AudioEngine.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ namespace Audio
3030
*/
3131
class Sound {
3232
public:
33+
virtual ~Sound() = default;
34+
3335
/**
3436
* @brief Set sound pitch, must be positive
3537
*

src/audio/OpenALAudioEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace Audio
169169
}
170170
}
171171

172-
virtual ~OpenALSound()
172+
~OpenALSound() override
173173
{
174174
if (m_hasSource)
175175
{

0 commit comments

Comments
 (0)