Re: Paranthesis problem in memory documentation

David King <[email protected]> Thu, 13 Nov 2014 17:53:42 +0000
Newsgroups gmane.comp.gnome.web
Message-ID <[email protected]>
Hi Mohan

On 2014-11-12 17:28, Mohan <[email protected]> wrote:
>Hello,
>https://developer.gnome.org/glib/stable/glib-Memory-Allocation.htmlweb page has the following in the Description"
>It's important to match g_malloc() (and wrappers such as g_new()) withg_free(), g_slice_alloc() and wrappers such as g_slice_new()) withg_slice_free(), plain malloc() with free(), and (if you're using C++)new with delete and new[] with delete[]. Otherwise bad things can happen,since these allocators may use different memory pools (and new/delete callconstructors and destructors). See also g_mem_set_vtable()."
>Looks like
>the "(" before and wrappers, 
>and
>")" after as g_slice_new()
>needs to be removed. g_malloc() does not go well with g_slice_free(), please check.

Thanks for the report. In fact, an opening parenthesis is missing, and I 
fixed that in glib master:

https://git.gnome.org/browse/glib/commit/?id=61cecd5a68743542baf685b47e8a4a5f4a98d205

The fix will be in the next unstable release.

-- 
http://amigadave.com/

_______________________________________________
gnome-web-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-web-list
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJUZPAmAAoJELDo4PCTCLTjtdoP+wVjRBqYPXL7fww/qXztKSDf
o9fw0xAdRwonT3wCxuY4gYLHIWAoDurqBz+sKGR1l5si8LkgF2UzHQM9WAsQzFGI
LNmDYnxXqmF5q48rV9lsQStnGOJR71sZlFK2MEwx9tptifajx07mFpRQgdQZIaYz
DdYvDgzbveDm6hvMdxHSSoRbw5yl10BovwZUc2lxMhFYo6lY83EbvCEOE6TtpapZ
6LamhisdEqXjo+DyJzIIBGfmZdQR++uQRap4uOj8gH5b94qtlQCrRqlYwTac+8jG
+Mn233rAQDCuxJfrdK1SPdgDy6wVb/zSuxmhiNxtGdqULz2pz/g6LNzOH5dWfjp2
UWka0FLqrfNscUG4cylAE9Var3bSFXa+u4HANBhiJhWe4HhIrujftnYTty9eXTT5
v6sfed12VD7+QoMLXyRmH+qJSqYnVdtpGnxzRhyjwcICOIMKO/yF4l6epzy3gew+
m02429AZqyAUJ9F95dIieQ9GoUF3N+R8kl9Uh2NnjCV9Vp9LQmJ/Dtt7RU+XJAwU
ZRsNzg+amn5PyXH5QcslszI0h8W+Kx/McGUD84fN0f8v8Kx/yQ9orIvHP8ly6tu5
upK9JaNU6GIYXx14U2jlN3Nk8X4CgN8eoMMXC+sbvdXOiX2BwObO2p/ULj2oY2oL
qS5o9jBaufLnGuaqXNYC
=wXdU
-----END PGP SIGNATURE-----