summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorPanagiotis Papadakos <papadako@csd.uoc.gr>2007-02-05 10:34:55 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-02-05 10:35:52 +0100
commit3805ccf02015e8127748e6f53ae9d7419ae3f633 (patch)
treedbfd0bf8fd3e4b3be5c34d71860d582a3b79981f /src/glx
parent296eeb882fa9fd7528f33ed307f87171dff7ee1c (diff)
break if we removed driver from Drivers list in driDestroyDisplay
Else we read memory we just released, in for statement.
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/x11/dri_glx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c
index 6f944d7d60..0649358ecc 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;
}
}