[Mesa-dev] [PATCH] dri2GetGlxDrawableFromXDrawableId may return NULL

Niels Ole Salscheider niels_ole at salscheider-online.de
Wed Jul 28 00:46:42 PDT 2010


Hello,

I have written a small patch that fixes a crash in KWin (see
attachment).

Since dri2GetGlxDrawableFromXDrawableId may return NULL we
should only dereference the returned pointer if it is not NULL.

Kind
regards

Ole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0000-dri2GetGlxDrawableFromXDrawableId-may-return-NULL.patch
Type: text/x-patch
Size: 2272 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100728/47175fa9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100728/47175fa9/attachment.pgp>


More information about the mesa-dev mailing list