Module: Mesa Branch: mesa_7_5_branch Commit: 0c4350790ac0639996cbefcf2556ca5748d39454 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c4350790ac0639996cbefcf2556ca5748d39454
Author: José Fonseca <[email protected]> Date: Thu Jul 16 11:21:12 2009 +0100 python: Hack to prevent segmentation faults when python exits. --- src/gallium/state_trackers/python/st_device.c | 8 +++++++- 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 8246b37..ea7d187 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); } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
