VirtualBox

Changeset 30155 in vbox for trunk


Ignore:
Timestamp:
Jun 10, 2010 4:53:37 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: autorelease on the wrong place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin-cocoa.mm

    r30151 r30155  
    5555{
    5656    /* Create a bitmap rep from the image. */
    57     NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage:pImage];
     57    NSBitmapImageRep *bitmapRep = [[[NSBitmapImageRep alloc] initWithCGImage:pImage] autorelease];
    5858    /* Create an NSImage and add the bitmap rep to it */
    59     NSImage *image = [[[NSImage alloc] init] autorelease];
     59    NSImage *image = [[NSImage alloc] init];
    6060    [image addRepresentation:bitmapRep];
    6161    return image;
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