intel: Clean up leak of driver context structure on context destroy.
authorBrian Paul <brianp@vmware.com>
Mon, 27 Jul 2009 21:28:49 +0000 (15:28 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 27 Jul 2009 21:33:07 +0000 (15:33 -0600)
(cherry picked from commit ddef7dc87b2001fbe117ee5f24a0c645ee95a03c)

src/mesa/drivers/dri/intel/intel_context.c

index cfd983d3682393857282e4b480eb114873ca4623..9db5b5464330979d57609aaae1f72251ffd46a5b 100644 (file)
@@ -804,6 +804,9 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
 
       /* free the Mesa context */
       _mesa_free_context_data(&intel->ctx);
+
+      FREE(intel);
+      driContextPriv->driverPrivate = NULL;
    }
 }