From: Kent Sutherland Date: Thu, 23 Feb 2006 23:33:41 +0000 (+0000) Subject: Fixed a crash when Core Image was available. X-Git-Tag: MenuTunes-1.7 X-Git-Url: http://git.ithinksw.org/ITKit.git/commitdiff_plain/650aa30b6ac73ecb0727ec4409f02bf90adf51f5 Fixed a crash when Core Image was available. --- diff --git a/ITWindowEffect.m b/ITWindowEffect.m index b58a0fb..3992252 100644 --- a/ITWindowEffect.m +++ b/ITWindowEffect.m @@ -8,7 +8,7 @@ + (NSArray *)effectClasses { - NSMutableArray *classes = [NSArray arrayWithObjects: + NSMutableArray *classes = [[NSArray arrayWithObjects: NSClassFromString(@"ITCutWindowEffect"), NSClassFromString(@"ITDissolveWindowEffect"), NSClassFromString(@"ITSlideHorizontallyWindowEffect"), @@ -17,7 +17,7 @@ NSClassFromString(@"ITZoomWindowEffect"), NSClassFromString(@"ITSpinWindowEffect"), NSClassFromString(@"ITSpinAndZoomWindowEffect"), - nil]; + nil] mutableCopy]; NSOpenGLView *view = [[NSOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 1, 1) pixelFormat:[NSOpenGLView defaultPixelFormat]]; if ([view openGLContext]) { @@ -29,7 +29,7 @@ } [view release]; - return classes; + return [classes autorelease]; } - (id)initWithWindow:(NSWindow *)window