VirtualBox

Changeset 100461 in vbox for trunk/include/VBox/GuestHost


Ignore:
Timestamp:
Jul 10, 2023 2:23:36 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158212
Message:

Shared Clipboard: More fine-grained control for Windows data object uninit vs. destruction. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-win.h

    r100431 r100461  
    250250
    251251    int Init(PSHCLCONTEXT pCtx, SharedClipboardWinDataObject::PCALLBACKS pCallbacks, LPFORMATETC pFormatEtc = NULL, LPSTGMEDIUM pStgMed = NULL, ULONG cFormats = 0);
     252    void Uninit(void);
    252253    void Destroy(void);
    253254
     
    292293
    293294protected:
     295
     296    void uninitInternal(void);
    294297
    295298    static int Thread(RTTHREAD hThread, void *pvUser);
     
    351354    /** Critical section to serialize access. */
    352355    RTCRITSECT                  m_CritSect;
    353     /** Whether the transfer thread is running. */
    354     bool                        m_fThreadRunning;
    355356    /** Event being triggered when reading the transfer list been completed. */
    356357    RTSEMEVENT                  m_EventListComplete;
     
    473474        : pDataObj(NULL) { }
    474475
    475     virtual ~SharedClipboardWinTransferCtx()
    476     {
    477         if (pDataObj)
    478             delete pDataObj;
    479     }
    480 
    481     /** Pointer to data object to use for this transfer.
     476    virtual ~SharedClipboardWinTransferCtx() { }
     477
     478    /** Pointer to data object to use for this transfer. Not owned.
    482479     *  Can be NULL if not being used. */
    483480    SharedClipboardWinDataObject *pDataObj;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette