third_party/virtualbox/src/VBox/Main/src-client/DisplayImpl.cpp
/**
 *  Uninitializes the instance and sets the ready flag to FALSE.
 *  Called either from FinalRelease() or by the parent when it gets destroyed.
 */
Uninitializes the instance and sets the ready flag to FALSE.
Called either from FinalRelease() or by the parent when it gets destroyed.
Uninitializes the instance and sets the ready flag to FALSE . Called either from FinalRelease () or by the parent when it gets destroyed .
void Display::uninit()
{
    LogRelFlowFunc(("this=%p\n", this));
    AutoUninitSpan autoUninitSpan(this);
    if (autoUninitSpan.uninitDone())
        return;
    unsigned uScreenId;
    for (uScreenId = 0; uScreenId < mcMonitors; uScreenId++)
    {
        maFramebuffers[uScreenId].pSourceBitmap.setNull();
        maFramebuffers[uScreenId].updateImage.pSourceBitmap.setNull();
        maFramebuffers[uScreenId].updateImage.pu8Address = NULL;
        maFramebuffers[uScreenId].updateImage.cbLine = 0;
        maFramebuffers[uScreenId].pFramebuffer.setNull();
#ifdef VBOX_WITH_VIDEOREC
        maFramebuffers[uScreenId].videoRec.pSourceBitmap.setNull();
#endif
    }
    if (mParent)
    {
        ComPtr<IEventSource> es;
        mParent->COMGETTER(EventSource)(es.asOutParam());
        es->UnregisterListener(this);
    }
    unconst(mParent) = NULL;
    if (mpDrv)
        mpDrv->pDisplay = NULL;
    mpDrv = NULL;
}
void Display :: uninit ( ) { LogRelFlowFunc ( ( " \n " , this ) ) ; AutoUninitSpan autoUninitSpan ( this ) ; if ( autoUninitSpan . uninitDone ( ) ) return ; unsigned uScreenId ; for ( uScreenId = 0 ; uScreenId < mcMonitors ; uScreenId ++ ) { maFramebuffers [ uScreenId ] . pSourceBitmap . setNull ( ) ; maFramebuffers [ uScreenId ] . updateImage . pSourceBitmap . setNull ( ) ; maFramebuffers [ uScreenId ] . updateImage . pu8Address = NULL ; maFramebuffers [ uScreenId ] . updateImage . cbLine = 0 ; maFramebuffers [ uScreenId ] . pFramebuffer . setNull ( ) ; #ifdef VBOX_WITH_VIDEOREC maFramebuffers [ uScreenId ] . videoRec . pSourceBitmap . setNull ( ) ; #endif } if ( mParent ) { ComPtr < IEventSource > es ; mParent -> COMGETTER ( EventSource ) ( es . asOutParam ( ) ) ; es -> UnregisterListener ( this ) ; } unconst ( mParent ) = NULL ; if ( mpDrv ) mpDrv -> pDisplay = NULL ; mpDrv = NULL ; }
Uninitializes the instance and sets the ready flag to FALSE.
Uninitializes the instance and sets the ready flag to FALSE .
/* Enclose the state transition Ready->InUninit->NotReady */