GNOME Bugzilla – Bug 755351
Example still contains g_autoptr(gchar)
Last modified: 2015-09-22 13:44:39 UTC
The doc of g_autoptr() still contains: g_autoptr(gchar) path = NULL; But that has been removed in favor of g_autofree().
Created attachment 311755 [details] [review] Doc: g_autoptr(gchar) has been replaced by g_autofree
While I was there, I see that g_autoptr_cleanup_generic_gfree() has a if(*pp)g_free(*pp). g_free() is already NULL-safe so that condition is useless and should be removed, right?
Created attachment 311760 [details] [review] Doc: g_autoptr(gchar) has been replaced by g_autofree
Review of attachment 311760 [details] [review]: Looks fine to me
(In reply to Xavier Claessens from comment #2) > While I was there, I see that g_autoptr_cleanup_generic_gfree() has a > if(*pp)g_free(*pp). g_free() is already NULL-safe so that condition is > useless and should be removed, right? Seems so
Created attachment 311764 [details] [review] Remove useless NULL check before g_free()
Review of attachment 311764 [details] [review]: sure
Thanks