Go to file
George Staplin bede83eb19 XQuartz: Fix a memory leak with surfaces that a new test found.
xp_destroy_surface was called with a surface id of 0, due to some
premature cleanup that set it to 0.  This means the surfaces
weren't being destroyed until the window was.

The code that did that was: pDRIDrawablePriv->sid = 0;

In long running applications this leak may or may not have been
harmful.  With the old libGL the surfaces weren't destroyed until
the context was destroyed or a new context created.  In the new
libGL they are reference counted, and released much sooner, so we
ran into a resource leak more noticeably with some tests.

Make the Apple DRI code dispatch events to the client(s) for
destroyed surfaces, when a resource is destroyed.  This seems to
work in my tests, however this clearly wasn't working for a while,
so bugs may result in the future if it enables some new (unexpected)
side effects.

Also add a few helpful comments to aid in understanding the code
in the future.

Tested with the test suite, Pymol, and various Mesa demos.
2009-03-04 01:39:58 -07:00
afb Death to RCS tags. 2007-06-29 14:06:52 -04:00
cfb More XPRINT nuke 2009-02-24 18:38:40 -08:00
cfb32 get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
composite Prevent the -wm command line option from causing a SEGV 2008-05-16 19:49:05 +03:00
config Fix hal shutdown crash. 2008-05-16 17:20:08 +03:00
damageext Death to RCS tags. 2007-06-29 14:06:52 -04:00
dbe Death to RCS tags. 2007-06-29 14:06:52 -04:00
dix XQuartz: Nuke an include that snuck in with the APPGROUP cherry-pick 2009-02-24 18:51:02 -08:00
doc Move SecurityPolicy file format from Xserver(1) to it's own man page 2007-02-22 14:38:40 -08:00
exa exa: fix assert logic thinko from 361a9eb953 2008-08-17 15:38:24 -07:00
fb XQuartz: Stab at fixing the alpha 0/1 bug (screenshots, etc) by pulling in some old code that got gutted from rootless. 2008-08-29 20:31:38 -07:00
GL __glXDRIbindTexImage: Fail if no texture bound to pixmap's texture target. 2008-12-17 14:35:10 -08:00
hw XQuartz: Fix a memory leak with surfaces that a new test found. 2009-03-04 01:39:58 -07:00
include Death to APPGROUP. 2009-02-24 18:40:42 -08:00
mfb Death to RCS tags. 2007-06-29 14:06:52 -04:00
mi Death to APPGROUP. 2009-02-24 18:40:42 -08:00
miext Rootless: Fix a variable scope issue that causes crahses when sizeof(void *) != sizeof(CARD8) 2009-01-16 13:00:08 -08:00
os Death to APPGROUP. 2009-02-24 18:40:42 -08:00
randr [RANDR] Don't mark Xinerama as active if no crtcs are enabled. (bug #11504). 2007-09-04 11:19:21 -07:00
record CVE-2008-1377 - RECORD and Security extensions memory corruption 2008-06-10 11:43:35 -06:00
render CVE-2008-2362 - RENDER Extension memory corruption 2008-06-10 11:43:27 -06:00
Xext Death to APPGROUP. 2009-02-24 18:40:42 -08:00
xfixes XFixes: LP64 related casting fixes from Bob Murphy 2008-10-31 18:58:40 -07:00
Xi Xi: ChangeDeviceControl presence events should set the appropriate devchange. 2008-07-29 10:19:09 +09:30
xkb Revert "xkb: delete default rules when devices are closed." 2008-07-29 13:15:50 +09:30
XTrap Death to RCS tags. 2007-06-29 14:06:52 -04:00
.gitignore Updated .gitignore 2008-12-23 12:57:50 -08:00
acinclude.m4 Include comment/copyright/license for AC_DEFINE_DIR in acinclude.m4 2007-07-25 17:42:23 -07:00
autogen.sh add correct default ACLOCAL and PKGCONFIG_PATH settings to autogen.sh 2008-04-08 20:41:20 -07:00
configure.ac 1.4.2-apple35 2009-02-25 11:31:23 -08:00
COPYING Add proper COPYING file 2007-08-01 08:07:08 +03:00
cpprules.in For MANDEFS, also replace __mandir__ for $(mandir) which includes 2006-12-08 15:51:44 -06:00
Makefile.am Generate ChangeLog file for make dist. 2007-07-10 21:33:54 -07:00
xorg-server.m4 Add xorg-server.m4 for driver dependency checking. 2005-11-01 15:01:51 +00:00
xorg-server.pc.in Fix driver build after pixman changes. 2007-08-07 09:01:24 -07:00