From: José Fonseca Date: Thu, 16 Jul 2009 10:21:12 +0000 (+0100) Subject: python: Hack to prevent segmentation faults when python exits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c4350790ac0639996cbefcf2556ca5748d39454;p=mesa.git python: Hack to prevent segmentation faults when python exits. --- 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); }