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

Erik de Castro Lopo mle+tools at xxxxx
Thu Sep 9 08:19:51 UTC 2010


Hi all,

I found three instances of code like:

    if (ptr)
       g_free(ptr);

The test nefore g_free is completely unneessary.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5000-g_free_cleanup.diff
Type: text/x-diff
Size: 1518 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100909/72753073/attachment.diff>


More information about the Devel mailing list