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-Tag: 062012170305~19900 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3805ccf02015e8127748e6f53ae9d7419ae3f633;p=profile%2Fivi%2Fmesa.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 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; } }