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:
parent
a083f97e6a
commit
1a269ac4ac
@ -31,6 +31,7 @@ typedef unsigned int ALuint;
|
|||||||
|
|
||||||
#include "utils/no_copy.hpp"
|
#include "utils/no_copy.hpp"
|
||||||
#include "utils/vec3.hpp"
|
#include "utils/vec3.hpp"
|
||||||
|
#include "utils/leak_check.hpp"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -101,6 +102,8 @@ public:
|
|||||||
std::string getFileName() const { return m_file; }
|
std::string getFileName() const { return m_file; }
|
||||||
|
|
||||||
void setPositional(bool positional) { m_positional = positional; }
|
void setPositional(bool positional) { m_positional = positional; }
|
||||||
|
|
||||||
|
LEAK_CHECK()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "audio/sfx_base.hpp"
|
#include "audio/sfx_base.hpp"
|
||||||
#include "audio/sfx_manager.hpp"
|
#include "audio/sfx_manager.hpp"
|
||||||
|
#include "utils/leak_check.hpp"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief OpenAL implementation of the abstract SFXBase interface
|
* \brief OpenAL implementation of the abstract SFXBase interface
|
||||||
@ -79,6 +80,8 @@ public:
|
|||||||
|
|
||||||
virtual const SFXBuffer* getBuffer() const { return m_soundBuffer; }
|
virtual const SFXBuffer* getBuffer() const { return m_soundBuffer; }
|
||||||
|
|
||||||
|
LEAK_CHECK()
|
||||||
|
|
||||||
}; // SFXOpenAL
|
}; // SFXOpenAL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user