X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2FXScreenSaverGLView.m;h=feccea6320be23b8161946ec0606e33706f03657;hp=1ce659903e2b3ca4ab6fd8fa5337ed2f0740d6b2;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/OSX/XScreenSaverGLView.m b/OSX/XScreenSaverGLView.m index 1ce65990..feccea63 100644 --- a/OSX/XScreenSaverGLView.m +++ b/OSX/XScreenSaverGLView.m @@ -125,6 +125,7 @@ init_GL (ModeInfo *mi) ctx = [[NSOpenGLContext alloc] initWithFormat:pixfmt shareContext:nil]; +// [pixfmt release]; // #### ??? } // Sync refreshes to the vertical blanking interval @@ -132,6 +133,10 @@ init_GL (ModeInfo *mi) [ctx setValues:&r forParameter:NSOpenGLCPSwapInterval]; check_gl_error ("NSOpenGLCPSwapInterval"); + // #### "Build and Analyze" says that ctx leaks, because it doesn't + // seem to realize that makeCurrentContext retains it (right?) + // Not sure what to do to make this warning go away. + [ctx makeCurrentContext]; check_gl_error ("makeCurrentContext");