[PATCH 4/9] Fix pixmap double-frees on error paths.

Keith Packard keithp at keithp.com
Mon Sep 19 22:43:25 PDT 2011


On Tue, 20 Sep 2011 15:29:01 +1000, Peter Hutterer <peter.hutterer at who-t.net> wrote:

> if we create the pixmap but it cannot be added to the resource (and return
> BadAlloc), shouldn't we destroy it?

AddResource frees the object if it fails

-- 
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/20110919/2a72b84a/attachment.pgp>


More information about the xorg-devel mailing list