intel: Clean up leak of driver context structure on context destroy.
authorEric Anholt <eric@anholt.net>
Thu, 2 Jul 2009 20:19:11 +0000 (13:19 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 2 Jul 2009 21:07:10 +0000 (14:07 -0700)
src/mesa/drivers/dri/intel/intel_context.c

index 33b2d0749959ee9d7594370f6f58bfb682388d45..ce9b118134781729b3b737b2a154109ff58dbfb6 100644 (file)
@@ -877,7 +877,8 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
       /* free the Mesa context */
       _mesa_free_context_data(&intel->ctx);
 
-      
+      FREE(intel);
+      driContextPriv->driverPrivate = NULL;
    }
 }