[PATCH] xf86-video-mga: replace deprecated X*alloc functions

Cyril Brulebois kibi at debian.org
Sun Apr 3 07:57:11 PDT 2011


For:

Nicolas Kaiser <nikai at nikai.net> (02/04/2011):
> -	        if (pptNew2) xfree(pptNew2);
> -	        if (pboxNew2) xfree(pboxNew2);
> +	        if (pptNew2) free(pptNew2);
> +	        if (pboxNew2) free(pboxNew2);

and others, you may want to get rid of the if(), free() can handle
NULL.

KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110403/c8de3ae1/attachment.pgp>


More information about the xorg-devel mailing list