Ver Fonte

Leak fix.

woollybah há 10 anos atrás
pai
commit
6b9ced04ab
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cocoamaxgui.mod/cocoa.macos.m

+ 1 - 1
cocoamaxgui.mod/cocoa.macos.m

@@ -4416,7 +4416,7 @@ NSImage *NSPixmapImage(bbpixmap *pix){
 
 	image=[[NSImage alloc] initWithSize:NSMakeSize(pix->width,  pix->height)];
 	[image addRepresentation:bitmap];
-	[image retain];
+	[image autorelease];
 	return image;
 }