summaryrefslogtreecommitdiffstats
path: root/src/glx/x11
diff options
context:
space:
mode:
authorPanagiotis Papadakos <[email protected]>2007-02-05 10:34:55 +0200
committerMichel Dänzer <[email protected]>2007-02-05 10:35:52 +0100
commit3805ccf02015e8127748e6f53ae9d7419ae3f633 (patch)
treedbfd0bf8fd3e4b3be5c34d71860d582a3b79981f /src/glx/x11
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/x11')
-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 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;
}
}