xserver-multidpi/hw
Dave Airlie 8f4640bdb9 randr: cleanup provider properly
So in the cold plug server shutdown case, we reap the resources
before we call CloseScreen handlers, so the config->randr_provider
is a dangling pointer when the xf86CrtcCloseScreen handler is called,

however in the hot screen unplug case, we can't rely on automatically
reaped resources, so we need to clean up the provider in the xf86CrtcCloseScreen
case.

This patch provides a cleanup callback from the randr provider removal
into the DDX so it can cleanup properly, this then gets called by the automatic
code for cold plug, or if hot unplug it gets called explicitly.

Fixes a number of random server crashes on shutdown
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58174
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=891140

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-03-01 18:14:28 +10:00
..
dmx dmx: don't include dmx-config.h from xdmxconfig (#37502) 2013-02-08 13:47:17 +10:00
kdrive Fix formatting of address operators 2012-12-05 18:09:48 -06:00
vfb vfb: Initialize the GLX extension again. 2012-11-21 11:13:55 +11:00
xfree86 randr: cleanup provider properly 2013-03-01 18:14:28 +10:00
xnest dix: Remove #includes of mibstore.h 2012-09-23 10:31:27 -07:00
xquartz XQuartz: Ensure <dix-config.h> is included in capabilities.c 2013-02-14 09:20:46 -08:00
xwin Merge remote-tracking branch 'jturney/xserver-next' 2013-01-20 15:58:38 -08:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00