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

void PoDoFo::PdfRefCountedBuffer::FreeBuffer (  ) [private]

Free a buffer if the refcount is zero. Internal method used by DerefBuffer.

Definition at line 44 of file PdfRefCountedBuffer.cpp.


Referenced by DerefBuffer().

    PODOFO_RAISE_LOGIC_IF( !m_pBuffer || m_pBuffer->m_lRefCount, "Tried to free in-use buffer" );

    // last owner of the file!
    if( m_pBuffer->m_bOnHeap && m_pBuffer->m_bPossesion )
        free( m_pBuffer->m_pHeapBuffer );
    delete m_pBuffer;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index