소스 검색

Static analysis fix: bad release.

(object is already init'd at this point, so -[obj init] destroys
 existing reference count.)
Ryan C. Gordon 11 년 전
부모
커밋
bcc2ed09b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/cocoa/SDL_cocoashape.m

+ 1 - 1
src/video/cocoa/SDL_cocoashape.m

@@ -92,7 +92,7 @@ Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShape
 
     pool = [[NSAutoreleasePool alloc] init];
     closure.view = [windata->nswindow contentView];
-    closure.path = [[NSBezierPath bezierPath] init];
+    closure.path = [NSBezierPath bezierPath];
     closure.window = shaper->window;
     SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
     [closure.path addClip];