VirtualBox

Changeset 31811 in vbox for trunk/src


Ignore:
Timestamp:
Aug 20, 2010 12:15:26 PM (14 years ago)
Author:
vboxsync
Message:

QT/FE: huge memory leak fixed (every event QT/FE listened for was never registered)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp

    r30871 r31811  
    6666        case KVBoxEventType_OnMachineStateChanged:
    6767        {
    68             CMachineStateChangedEvent es(event);
     68            CMachineStateChangedEvent es(pEvent);
    6969            emit sigMachineStateChange(es.GetMachineId(), es.GetState());
    7070            break;
     
    7878        case KVBoxEventType_OnExtraDataCanChange:
    7979        {
    80             CExtraDataCanChangeEvent es(event);
     80            CExtraDataCanChangeEvent es(pEvent);
    8181            /* Has to be done in place to give an answer */
    8282            bool fVeto = false;
     
    8989        case KVBoxEventType_OnExtraDataChanged:
    9090        {
    91             CExtraDataChangedEvent es(event);
     91            CExtraDataChangedEvent es(pEvent);
    9292            emit sigExtraDataChange(es.GetMachineId(), es.GetKey(), es.GetValue());
    9393            break;
     
    9898        case KVBoxEventType_OnMachineRegistered:
    9999        {
    100             CMachineRegisteredEvent es(event);
     100            CMachineRegisteredEvent es(pEvent);
    101101            emit sigMachineRegistered(es.GetMachineId(), es.GetRegistered());
    102102            break;
     
    104104        case KVBoxEventType_OnSessionStateChanged:
    105105        {
    106             CSessionStateChangedEvent es(event);
     106            CSessionStateChangedEvent es(pEvent);
    107107            emit sigSessionStateChange(es.GetMachineId(), es.GetState());
    108108            break;
     
    114114        case KVBoxEventType_OnSnapshotChanged:
    115115        {
    116             CSnapshotChangedEvent es(event);
     116            CSnapshotChangedEvent es(pEvent);
    117117            emit sigSnapshotChange(es.GetMachineId(), es.GetSnapshotId());
    118118            break;
     
    126126        case KVBoxEventType_OnMousePointerShapeChanged:
    127127        {
    128             CMousePointerShapeChangedEvent es(event);
     128            CMousePointerShapeChangedEvent es(pEvent);
    129129            emit sigMousePointerShapeChange(es.GetVisible(), es.GetAlpha(), QPoint(es.GetXhot(), es.GetYhot()), QSize(es.GetWidth(), es.GetHeight()), es.GetShape());
    130130            break;
     
    132132        case KVBoxEventType_OnMouseCapabilityChanged:
    133133        {
    134             CMouseCapabilityChangedEvent es(event);
     134            CMouseCapabilityChangedEvent es(pEvent);
    135135            emit sigMouseCapabilityChange(es.GetSupportsAbsolute(), es.GetSupportsRelative(), es.GetNeedsHostCursor());
    136136            break;
     
    138138        case KVBoxEventType_OnKeyboardLedsChanged:
    139139        {
    140             CKeyboardLedsChangedEvent es(event);
     140            CKeyboardLedsChangedEvent es(pEvent);
    141141            emit sigKeyboardLedsChangeEvent(es.GetNumLock(), es.GetCapsLock(), es.GetScrollLock());
    142142            break;
     
    144144        case KVBoxEventType_OnStateChanged:
    145145        {
    146             CStateChangedEvent es(event);
     146            CStateChangedEvent es(pEvent);
    147147            emit sigStateChange(es.GetState());
    148148            break;
     
    155155        case KVBoxEventType_OnNetworkAdapterChanged:
    156156        {
    157             CNetworkAdapterChangedEvent es(event);
     157            CNetworkAdapterChangedEvent es(pEvent);
    158158            emit sigNetworkAdapterChange(es.GetNetworkAdapter());
    159159            break;
     
    166166        case KVBoxEventType_OnMediumChanged:
    167167        {
    168             CMediumChangedEvent es(event);
     168            CMediumChangedEvent es(pEvent);
    169169            emit sigMediumChange(es.GetMediumAttachment());
    170170            break;
     
    182182        case KVBoxEventType_OnUSBDeviceStateChanged:
    183183        {
    184             CUSBDeviceStateChangedEvent es(event);
     184            CUSBDeviceStateChangedEvent es(pEvent);
    185185            emit sigUSBDeviceStateChange(es.GetDevice(), es.GetAttached(), es.GetError());
    186186            break;
     
    188188        case KVBoxEventType_OnSharedFolderChanged:
    189189        {
    190             CSharedFolderChangedEvent es(event);
     190            CSharedFolderChangedEvent es(pEvent);
    191191            emit sigSharedFolderChange();
    192192            break;
     
    194194        case KVBoxEventType_OnRuntimeError:
    195195        {
    196             CRuntimeErrorEvent es(event);
     196            CRuntimeErrorEvent es(pEvent);
    197197            emit sigRuntimeError(es.GetFatal(), es.GetId(), es.GetMessage());
    198198            break;
     
    200200        case KVBoxEventType_OnCanShowWindow:
    201201        {
    202             CCanShowWindowEvent es(event);
     202            CCanShowWindowEvent es(pEvent);
    203203            /* Has to be done in place to give an answer */
    204204            bool fVeto = false;
     
    211211        case KVBoxEventType_OnShowWindow:
    212212        {
    213             CShowWindowEvent es(event);
     213            CShowWindowEvent es(pEvent);
    214214            /* Has to be done in place to give an answer */
    215215            ULONG64 winId;
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