glx: free context in driDestroyContext()
authorKristof Ralovich <kristof.ralovich@gmail.com>
Wed, 20 Aug 2008 21:24:04 +0000 (15:24 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 20 Aug 2008 21:33:03 +0000 (15:33 -0600)
src/glx/x11/dri_glx.c

index 82653f1..08c83a2 100644 (file)
@@ -445,6 +445,7 @@ static void driDestroyContext(__GLXDRIcontext *context,
     (*psc->core->destroyContext)(pcp->driContext);
 
     XF86DRIDestroyContext(psc->dpy, psc->scr, pcp->hwContextID);
+    Xfree(pcp);
 }
 
 static Bool driBindContext(__GLXDRIcontext *context,