VirtualBox

Changeset 78745 in vbox for trunk/src


Ignore:
Timestamp:
May 25, 2019 2:22:39 PM (6 years ago)
Author:
vboxsync
Message:

Main/GuestDnD: Moved up comment about dragons and set pTask to NULL for emphasis.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r78093 r78745  
    378378         * so there is no need in the call of delete operator. */
    379379        hr = pTask->createThreadWithType(RTTHREADTYPE_MAIN_WORKER);
    380 
     380        pTask = NULL;  /* Note: pTask is now owned by the worker thread. */
    381381    }
    382382    catch (std::bad_alloc &)
     
    397397        ComAssertComRC(hr);
    398398
    399         /* Note: pTask is now owned by the worker thread. */
    400399    }
    401400    else
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r78093 r78745  
    659659         * so there is no need in the call of delete operator. */
    660660        hr = pTask->createThreadWithType(RTTHREADTYPE_MAIN_WORKER);
    661 
     661        pTask = NULL; /* Note: pTask is now owned by the worker thread. */
    662662    }
    663663    catch (std::bad_alloc &)
     
    677677        hr = pResp->queryProgressTo(aProgress.asOutParam());
    678678        ComAssertComRC(hr);
    679 
    680         /* Note: pTask is now owned by the worker thread. */
    681679    }
    682680    else
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