VirtualBox

Changeset 56074 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 26, 2015 1:38:15 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100598
Message:

Main: GuestDnDPrivate.h: Don't mix allocation stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestDnDPrivate.h

    r55963 r56074  
    208208            {
    209209                if (   paParms[i].type == VBOX_HGCM_SVC_PARM_PTR
    210                     && paParms[i].u.pointer.addr)
     210                    && paParms[i].u.pointer.size)
    211211                {
     212                    AssertPtr(paParms[i].u.pointer.addr);
    212213                    RTMemFree(paParms[i].u.pointer.addr);
    213214                }
    214215            }
    215216
    216             delete paParms;
     217            RTMemFree(paParms);
    217218        }
    218219    }
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