On Jul 13, 2010, at 10:18, Keith Packard wrote:

On Tue, 13 Jul 2010 08:29:22 -0700, Jeremy Huddleston <[email protected] > 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...

#ifdef ARGB_CURSOR
    if (src->bits->argb != NULL)
    {
#if BITMAP_BIT_ORDER == MSBFirst
        rowbytes = src->bits->width * sizeof (CARD32);
        data = (uint32_t *) src->bits->argb;
#else




--
[email protected]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to