break if we removed driver from Drivers list in driDestroyDisplay
authorPanagiotis Papadakos <papadako@csd.uoc.gr>
Mon, 5 Feb 2007 08:34:55 +0000 (10:34 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Mon, 5 Feb 2007 09:35:52 +0000 (10:35 +0100)
Else we read memory we just released, in for statement.

src/glx/x11/dri_glx.c

index 6f944d7d609a208bffb91de86bce429a76ed490a..0649358ecc8040dbc64c6f17f53f259cf6c74edb 100644 (file)
@@ -399,6 +399,7 @@ static void driDestroyDisplay(Display *dpy, void *private)
                       Drivers = driver->next;
 
                    Xfree(driver);
+                   break;
                 }
              }