VirtualBox

Changeset 9705 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 16, 2008 9:22:49 AM (17 years ago)
Author:
vboxsync
Message:

Main/hgcm: fixed a segfault affecting services with no client data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/hgcm/HGCM.cpp

    r8155 r9705  
    172172{
    173173    public:
    174         HGCMClient () : HGCMObject(HGCMOBJ_CLIENT) {};
     174        HGCMClient () : HGCMObject(HGCMOBJ_CLIENT), pService(NULL),
     175                        pvData(NULL) {};
    175176        ~HGCMClient ();
    176177
     
    186187HGCMClient::~HGCMClient ()
    187188{
    188     RTMemFree (pvData);
     189    if (pService->SizeOfClient () > 0)
     190        RTMemFree (pvData);
    189191}
    190192
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