MythTV
master
libs
libmythbase
cleanupguard.cpp
Go to the documentation of this file.
1
#include "
cleanupguard.h
"
2
#include "
referencecounter.h
"
3
4
CleanupGuard::CleanupGuard
(
CleanupFunc
cleanFunction) :
5
m_cleanFunction(cleanFunction)
6
{
7
}
8
9
CleanupGuard::~CleanupGuard
()
10
{
11
m_cleanFunction
();
12
ReferenceCounter::PrintDebug
();
13
}
CleanupGuard::m_cleanFunction
CleanupFunc m_cleanFunction
Definition:
cleanupguard.h:17
ReferenceCounter::PrintDebug
static void PrintDebug(void)
Print out any leaks if that level of debugging is enabled.
Definition:
referencecounter.cpp:72
CleanupGuard::CleanupFunc
void(*)() CleanupFunc
Definition:
cleanupguard.h:9
CleanupGuard::CleanupGuard
CleanupGuard(CleanupFunc cleanFunction)
Definition:
cleanupguard.cpp:4
CleanupGuard::~CleanupGuard
~CleanupGuard()
Definition:
cleanupguard.cpp:9
referencecounter.h
cleanupguard.h
Generated on Tue Apr 16 2024 03:18:38 for MythTV by
1.8.17