VirtualBox

Changeset 86394 in vbox


Ignore:
Timestamp:
Oct 1, 2020 5:06:30 PM (4 years ago)
Author:
vboxsync
Message:

VBoxClient/seamless: Free mpRects in SeamlessX11::uninit. bugref:9841

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp

    r85121 r86394  
    7070
    7171/**
    72   * Initialise the guest and ensure that it is capable of handling seamless mode
    73   *
    74   * @param  pHostCallback   host callback.
    75   * @returns true if it can handle seamless, false otherwise
    76   */
     72 * Initialise the guest and ensure that it is capable of handling seamless mode
     73 *
     74 * @param  pHostCallback   host callback.
     75 * @returns true if it can handle seamless, false otherwise
     76 */
    7777int SeamlessX11::init(PFNSENDREGIONUPDATE pHostCallback)
    7878{
     
    9595    LogRelFlowFuncLeaveRC(rc);
    9696    return rc;
     97}
     98
     99/**
     100 * Shutdown seamless event monitoring.
     101 */
     102void SeamlessX11::uninit(void)
     103{
     104    if (mHostCallback)
     105        stop();
     106    mHostCallback = NULL;
     107    if (mDisplay)
     108        XCloseDisplay(mDisplay);
     109    mDisplay = NULL;
     110    if (mpRects)
     111    {
     112        RTMemFree(mpRects);
     113        mpRects = NULL;
     114    }
    97115}
    98116
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.h

    r85121 r86394  
    224224     * Shutdown seamless event monitoring.
    225225     */
    226     void uninit(void)
    227     {
    228         if (mHostCallback)
    229             stop();
    230         mHostCallback = NULL;
    231         if (mDisplay)
    232             XCloseDisplay(mDisplay);
    233         mDisplay = NULL;
    234     }
     226    void uninit(void);
    235227
    236228    /**
Note: See TracChangeset for help on using the changeset viewer.

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