[Geany-devel] [PATCH] Removed unnecessary pointer checks before g_free

Nick Treleaven nick.treleaven at xxxxx
Thu Sep 9 17:21:21 UTC 2010


On Thu, 9 Sep 2010 18:19:51 +1000
Erik de Castro Lopo <mle+tools at mega-nerd.com> wrote:

> I found three instances of code like:
> 
>     if (ptr)
>        g_free(ptr);
> 
> The test nefore g_free is completely unneessary.

Thanks, applied.

Regards,
Nick



More information about the Devel mailing list