[PULL] Fix an XQuartz regression freeing incorrectly in QuartzSetCursor

Keith Packard keithp at keithp.com
Tue Jul 13 11:38:11 PDT 2010


On Tue, 13 Jul 2010 11:22:10 -0700, Jeremy Huddleston <jeremyhu at apple.com> wrote:
> 
> On Jul 13, 2010, at 10:18, Keith Packard wrote:
> 
> > On Tue, 13 Jul 2010 08:29:22 -0700, Jeremy Huddleston <jeremyhu at apple.com 
> > > wrote:
> >
> >> Jeremy Huddleston (1):
> >>      XQuartz: Avoid a crash when mistakenly free()ing in  
> >> QuartzSetCursor on some configs
> >
> > I'd suggest just initializing 'data' to NULL instead of adding checks.
> 
> That's not the problem.  The problem is that data is set to something  
> not freeable in some cases.  I can put the ugly 'free_data' bool  
> inside of additional #if-foo, but the code is ugly enough as it is...

Yeah, #if-defs considered harmful. I'll take the patch as-is then.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100713/3e3c8ce9/attachment.pgp>


More information about the xorg-devel mailing list