1. flule
  2. BWToolkit copy

Commits

Brandon Walkin  committed ec5d314

Fixed leak

  • Participants
  • Parent commits 48fcf55
  • Branches default

Comments (0)

Files changed (1)

File NSImage+BWAdditions.m

View file
     existingSize.height = [[existingImage bestRepresentationForDevice:nil] pixelsHigh];
 	
     NSSize newSize = NSMakeSize(existingSize.height, existingSize.width);
-    NSImage *rotatedImage = [[NSImage alloc] initWithSize:newSize];
+    NSImage *rotatedImage = [[[NSImage alloc] initWithSize:newSize] autorelease];
 	
     [rotatedImage lockFocus];