From 3805ccf02015e8127748e6f53ae9d7419ae3f633 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadakos Date: Mon, 5 Feb 2007 10:34:55 +0200 Subject: [PATCH] break if we removed driver from Drivers list in driDestroyDisplay Else we read memory we just released, in for statement. --- src/glx/x11/dri_glx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 6f944d7..0649358 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -399,6 +399,7 @@ static void driDestroyDisplay(Display *dpy, void *private) Drivers = driver->next; Xfree(driver); + break; } } -- 2.7.4