Fix GError leak in g_file_query_writable_namespaces()
Fix GError leak in g_file_query_writable_namespaces()

gvfs commit b358ca "Make sure metadata is always returned by
query_writable_namespaces()" changed the
query_writable_namespaces vfunc to never return NULL, but the error
checking in g_daemon_file_query_writable_namespaces still assumes vfunc
failure implies NULL return value and GError set. This causes a memory
leak as on failure the GError will be set but the vfunc implementation
will have created its own default list so NULL will not be returned, and
the GError will never be cleared.

This commit directly checks if the GError is set to detect failures,
my_error is directly dereferenced in the error block anyway.

This also removes an unneeded call to g_file_attribute_info_new(); as
the vfunc always returns us a non-NULL GFileAttributeInfoList.

https://bugzilla.gnome.org/show_bug.cgi?id=747364

cention-sany/glib,Distrotech/glib,tchakabam/glib,endlessm/glib,MathieuDuponchelle/glib,mzabaluev/glib,johne53/MB3Glib,tchakabam/glib,cention-sany/glib,johne53/MB3Glib,cention-sany/glib,Distrotech/glib,gale320/glib,tchakabam/glib,johne53/MB3Glib,johne53/MB3Glib,Distrotech/glib,mzabaluev/glib,johne53/MB3Glib,tchakabam/glib,gale320/glib,mzabaluev/glib,ieei/glib,MathieuDuponchelle/glib,MathieuDuponchelle/glib,endlessm/glib,tchakabam/glib,ieei/glib,ieei/glib,gale320/glib,mzabaluev/glib,MathieuDuponchelle/glib,cention-sany/glib,Distrotech/glib,ieei/glib,ieei/glib,endlessm/glib,gale320/glib,mzabaluev/glib,Distrotech/glib,cention-sany/glib,johne53/MB3Glib,MathieuDuponchelle/glib,gale320/glib,endlessm/glib,endlessm/glib