VirtualBox

Changeset 35760 in vbox


Ignore:
Timestamp:
Jan 28, 2011 1:09:10 PM (14 years ago)
Author:
vboxsync
Message:

Main/DisplayImpl: free the screenshot buffer on error for secondary displays.

File:
1 edited

Legend:

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

    r35638 r35760  
    22462246                    *pu32Height = height;
    22472247                }
     2248                else
     2249                {
     2250                    RTMemFree(pu8Data);
     2251                }
    22482252            }
    22492253        }
     
    23152319        }
    23162320
    2317         /* This can be called from any thread. */
    2318         pDrv->pUpPort->pfnFreeScreenshot (pDrv->pUpPort, pu8Data);
     2321        if (aScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
     2322        {
     2323            /* This can be called from any thread. */
     2324            pDrv->pUpPort->pfnFreeScreenshot (pDrv->pUpPort, pu8Data);
     2325        }
     2326        else
     2327        {
     2328            RTMemFree(pu8Data);
     2329        }
    23192330    }
    23202331
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