On Fri, 14 May 2010 23:23:20 -0700, Daniel wrote:

> I believe g_strndup should be followed by g_free. I tested that the
> code compiles and runs. But no real runtime testing was done.


Thank you, committed.

Just for clarity, there is no technical requirement that g_strndup() or
similar should be followed by a g_free() instead of free().
g_free() simply calls free() with the difference that it checks for a
NULL pointer before which is good in most cases.
And using g_free() there is also better for readability.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Geany-devel mailing list
[email protected]
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel

Reply via email to