Add a couple leak-check macros

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-12-10 01:31:41 +00:00
parent a083f97e6a
commit 1a269ac4ac
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@ typedef unsigned int ALuint;
#include "utils/no_copy.hpp"
#include "utils/vec3.hpp"
#include "utils/leak_check.hpp"
#include <string>
@ -101,6 +102,8 @@ public:
std::string getFileName() const { return m_file; }
void setPositional(bool positional) { m_positional = positional; }
LEAK_CHECK()
};

View File

@ -29,6 +29,7 @@
#endif
#include "audio/sfx_base.hpp"
#include "audio/sfx_manager.hpp"
#include "utils/leak_check.hpp"
/**
* \brief OpenAL implementation of the abstract SFXBase interface
@ -79,6 +80,8 @@ public:
virtual const SFXBuffer* getBuffer() const { return m_soundBuffer; }
LEAK_CHECK()
}; // SFXOpenAL
#endif