kwave
18.07.70
|
Public Member Functions | |
AlsaMallocWrapper () | |
virtual | ~AlsaMallocWrapper () |
operator T*& () | |
Private Attributes | |
T * | m_data |
Wrapper for avoiding use of the ALSA alloca based functions which do not work well with -fstack-protector of newer GCC versions, and also avoids potential memory leaks when using pure ALSA malloc/free based functions.
Definition at line 160 of file PlayBack-ALSA.cpp.
|
inline |
constructor, creates an object using the allocator function
Definition at line 164 of file PlayBack-ALSA.cpp.
References AlsaMallocWrapper< T,, >::m_data.
|
inlinevirtual |
destructor, frees the object using the deleter function
Definition at line 171 of file PlayBack-ALSA.cpp.
References AlsaMallocWrapper< T,, >::m_data.
|
inline |
conversion operator, returns the ALSA object
Definition at line 178 of file PlayBack-ALSA.cpp.
References AlsaMallocWrapper< T,, >::m_data.
|
private |
allocated ALSA object
Definition at line 181 of file PlayBack-ALSA.cpp.
Referenced by AlsaMallocWrapper< T,, >::AlsaMallocWrapper(), AlsaMallocWrapper< T,, >::operator T*&(), and AlsaMallocWrapper< T,, >::~AlsaMallocWrapper().