Fixed leak in previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-08-17 01:27:21 +00:00
parent 4112aee9a3
commit 6518906b60

View File

@ -57,6 +57,10 @@ Swatter::Swatter(Attachment *attachment, Kart *kart)
//-----------------------------------------------------------------------------
Swatter::~Swatter()
{
if (m_swat_sound)
{
sfx_manager->deleteSFX(m_swat_sound);
}
} // ~Swatter
//-----------------------------------------------------------------------------