xserver-multidpi/miext
Adam Jackson fa0bb01899 rootless: Fix bogus handling of broken root clip
gcc quite correctly complains about this:

    In file included from ../../include/scrnintstr.h:51:0,
                     from rootlessValTree.c:98:
    In function 'RegionUninit.isra.1',
        inlined from 'RegionEmpty' at ../../include/regionstr.h:194:5,
        inlined from 'RootlessMiValidateTree' at rootlessValTree.c:490:9:
    ../../include/regionstr.h:166:9: warning: attempt to free a non-heap object 'RegionBrokenData' [-Wfree-nonheap-object]
             free((_pReg)->data);

So that'd crash if you ever got there.  RegionNull will do almost the
same thing only without the free(), so let's do that instead; it might
still not be an entirely sane way to recover, but it at least won't
crash.

Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2015-09-21 17:44:48 -04:00
..
damage dix: Unexport various implementation details 2015-07-08 16:40:57 -04:00
rootless rootless: Fix bogus handling of broken root clip 2015-09-21 17:44:48 -04:00
shadow Convert mi & miext to new *allocarray functions 2015-04-21 16:58:08 -07:00
sync Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Makefile.am rootless: Build unconditionally 2015-07-08 16:41:28 -04:00