summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-07-16 11:21:12 +0100
committerJosé Fonseca <[email protected]>2009-07-16 11:22:56 +0100
commit0c4350790ac0639996cbefcf2556ca5748d39454 (patch)
treea4a3ba265258b7391b62e06d1b84748cecf02d42 /src/gallium/state_trackers
parent4e1e18a772061fe3573f2ee2bf6afe447ee66fd6 (diff)
python: Hack to prevent segmentation faults when python exits.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/python/st_device.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/python/st_device.c b/src/gallium/state_trackers/python/st_device.c
index 8246b378ce0..ea7d18738f6 100644
--- a/src/gallium/state_trackers/python/st_device.c
+++ b/src/gallium/state_trackers/python/st_device.c
@@ -44,8 +44,14 @@
static void
st_device_really_destroy(struct st_device *st_dev)
{
- if(st_dev->screen)
+ if(st_dev->screen) {
+ /* FIXME: Don't really destroy until we keep track of every single
+ * reference or we end up causing a segmentation fault every time
+ * python exits. */
+#if 0
st_dev->screen->destroy(st_dev->screen);
+#endif
+ }
FREE(st_dev);
}