src/video/quartz/SDL_QuartzGL.m
changeset 1160 72c6c3e5bb85
parent 900 c3c8739f7844
child 1177 e967ab22e6fd
     1.1 --- a/src/video/quartz/SDL_QuartzGL.m	Tue Oct 11 23:57:04 2005 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzGL.m	Thu Oct 13 09:47:06 2005 +0000
     1.3 @@ -119,6 +119,8 @@
     1.4      gl_context = [ [ NSOpenGLContext alloc ] initWithFormat:fmt
     1.5                                                 shareContext:nil];
     1.6  
     1.7 +    [ fmt release ];
     1.8 +
     1.9      if (gl_context == nil) {
    1.10          SDL_SetError ("Failed creating OpenGL context");
    1.11          return 0;
    1.12 @@ -152,8 +154,6 @@
    1.13      /* Convince SDL that the GL "driver" is loaded */
    1.14      this->gl_config.driver_loaded = 1;
    1.15  
    1.16 -    [ fmt release ];
    1.17 -
    1.18      return 1;
    1.19  }
    1.20