From: Panagiotis Papadakos Date: Mon, 5 Feb 2007 08:34:55 +0000 (+0200) Subject: break if we removed driver from Drivers list in driDestroyDisplay X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3805ccf02015e8127748e6f53ae9d7419ae3f633;p=mesa.git break if we removed driver from Drivers list in driDestroyDisplay Else we read memory we just released, in for statement. --- diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 6f944d7d609..0649358ecc8 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; } }