add missing free() in intelDestroyContext
authorBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 17:16:28 +0000 (10:16 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 17:16:28 +0000 (10:16 -0700)
src/mesa/drivers/dri/intel_winsys/intel_context.c

index 565e377..9e6f95a 100644 (file)
@@ -153,7 +153,7 @@ intelCreateContext(const __GLcontextModes * mesaVis,
       }
    }
 
-   intel->st = st_create_context2(pipe,  mesaVis, NULL);
+   intel->st = st_create_context2(pipe, mesaVis, NULL);
    intel->st->ctx->DriverCtx = intel;  /* hope to get rid of this... */
 
    return GL_TRUE;
@@ -183,6 +183,7 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
       }
 
       st_destroy_context2(intel->st);
+      free(intel);
    }
 }