Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfRefCountedBuffer::DerefBuffer (  ) [inline, private]

Indicate that the buffer is no longer being used, freeing it if there are no further users. The buffer becomes inaccessible to this PdfRefCountedBuffer in either case.

Definition at line 300 of file PdfRefCountedBuffer.h.

References FreeBuffer().

Referenced by operator=(), ReallyDetach(), and ~PdfRefCountedBuffer().

{
    if ( m_pBuffer && !(--m_pBuffer->m_lRefCount) )
        FreeBuffer();
    // Whether or not it still exists, we no longer have anything to do with
    // the buffer we just released our claim on.
    m_pBuffer = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index