VirtualBox

Changeset 92862 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 10, 2021 1:32:55 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148803
Message:

Guest Control/VBoxManage: Don't release stored ComPtr for the Guest Control listener objects; this will be done in the destructor automatically within the map's erase() or clear() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrlListener.cpp

    r92372 r92862  
    207207                    CHECK_ERROR_BREAK(pES, UnregisterListener(itProc->second.mListener));
    208208            } while (0);
    209             itProc->first->Release();
    210209        }
    211210
     
    228227                    CHECK_ERROR_BREAK(pES, UnregisterListener(itFile->second.mListener));
    229228            } while (0);
    230             itFile->first->Release();
    231229        }
    232230
     
    294292                            if (!pES.isNull())
    295293                                CHECK_ERROR(pES, UnregisterListener(itFile->second.mListener));
    296                             itFile->first->Release();
    297294                        }
    298295
     
    359356                            if (!pES.isNull())
    360357                                CHECK_ERROR(pES, UnregisterListener(itProc->second.mListener));
    361                             itProc->first->Release();
    362358                        }
    363359
     
    434430
    435431            } while (0);
    436             itSession->first->Release();
    437432        }
    438433
     
    503498                            if (!pES.isNull())
    504499                                CHECK_ERROR_BREAK(pES, UnregisterListener(itSession->second.mListener));
    505                             itSession->first->Release();
    506500                        }
    507501
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