xserver-multidpi/hw
Tiago Vignatti 81414c1c83 xfree86: xv: fix double free in xf86XVFreeAdaptor
When xf86XVFreeAdaptor is called more than once in xf86XVInitAdaptors (it may,
but not often), the conditional being changed in this patch will always take
true path and will keep freeing pAdaptor->pAttributes, thus letting the system
error-prone.

This patch fix such problem checking for a pointer instead the number of
attributes. Such pointer will be deallocated when xf86XVFreeAdaptor is called
first and will not let the code re-run in the following calls. This is a bit
similar how the surroundings code is already doing.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-07 19:56:33 +03:00
..
dmx glx: Remove some obfuscatory macros 2011-03-28 12:46:38 -04:00
kdrive Merge remote-tracking branch 'airlied/pwin-cleanup' 2011-03-27 20:06:29 -07:00
vfb man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
xfree86 xfree86: xv: fix double free in xf86XVFreeAdaptor 2011-04-07 19:56:33 +03:00
xnest Revert "dix: Remove usage_hint from pixmaps, store it in ->drawable.class" 2011-03-17 23:48:52 -07:00
xquartz glx: Remove ->forceCurrent from the context vtable 2011-03-28 12:46:38 -04:00
xwin Merge remote-tracking branch 'jturney/master' 2011-04-06 08:34:10 -07:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00