Commits

Brandon Walkin  committed ec5d314

Fixed leak

  • Participants
  • Parent commits 48fcf55

Comments (0)

Files changed (1)

File NSImage+BWAdditions.m

     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];